on 11-15-2016 8:50 PM
Hello All,
I have a Webi report with multiple columns, I'm trying to get a count of all the unique rows in column "Mesh Group" (as displayed in attachment 2). Basically, the column "Number of mesh group" which is right next to "Mesh Group" needs to display the count of all unique/duplicate values. For ex: "KM2" appears 2 times within the report, hence the "Number of mesh group" value must show 2 next to "KM2".
I have tried the count, count all & distinct functions so far, with no success. Can someone please help create a function that will achieve this for me ?
Thanks
GD
Hello Gaurav,
Please try with ForAll Context Operator.
Formula:
=Sum(Count([Mesh Group])) ForAll([Network];[Mesh];[Area])
If you dont want to consider any of the Column then remove that from ForAll Parameter.
Regards,
Sushil Padhye
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Sushil! What I was missing in your formula, is to add other dimensions that I did not specify in my question (since it's a very large table I'm working with). I later added all the dimensions under ForAll function and it worked like a charm.
Just wondering, if instead of adding each and every dimension used in the table, is there another function that will siolve the purpose, currently, if a new dimension is added to the table, the user has to be cognizant to add it to the variable formula as well.
Thanks again
GD
Hi, For me it is =Sum(Count([Mesh Group])) ForAll([Network];[Mesh];[Area]) not working.
this >> =Sum(Count([Mesh Group])) ForAll([Network];[Mesh];[Area]) formaula is working and showing all duplicate count but not able to filter in report. Please suggest.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
Glad it worked!!.
Thanks,
Jothi
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.
try this.
=Sum(Count([Mesh Group];All) In ([Mesh Group]))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for your response Sushil.
I tried the formula you suggested, it only bring 1s under "number of mesh group" . It does not seem to pick the duplicate values sum.
Will Distinct function help ?
Thanks
GD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the data resides on the database, you need a GROUP BY select. Just an example, plain SQL (needs to be transfered into ABAP or CDS):
Data in column "data" of table "table": A1, A1, A2, A3, A3, A4
select count(*) as counter, data
from table
group by data
result: 2, A1; 1, A2, 2; A3, 1 A4
so A1 is there 2 times, A2 one time and so on.
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.