12-20-2016 2:13 AM - edited 02-04-2024 7:01 AM
Hello Experts,
I have the below table in webi
and require the "count of occurance of IMP at the beginning of the Description field for each product", I should extract the below table.
I have tried using the variable "=Count(Match([Description]; "IMP*")) In ([Product])" but not as expected. Please help!
Thanks,
Thank you Kuldeep, is working fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your logic should work. Just instead of count use Sum(). See if that helps.
=Sum(Match([Description]; "IMP*")) In ([Product])
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vishal
I guess, Count cannot be used over Match since it returns Boolean value. I tried like below .
1. Imp-Matching= Match([Desc];"IMP*") It returning 1's & 0's.
2. Create variable which converts the above variable to Number using Tonumber function; Imp-Match-Meas = ToNumber([Imp-Matching])
3. count the matching using variable with = sum([Imp-Match-Meas]) foreach ([Product]).
similarly use "Not" function in first variable to achieve non matching count.
Hope it helps
Regards
Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Re submitting the query as the tables were not clear
Hello Experts,
I have the below table in webi
and require the "count of occurance of IMP at the beginning of the Description field for each product", I should extract the below table.
I have tried using the variable "=Count(Match([Description]; "IMP*")) In ([Product])" but not as expected. Please help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.