Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
I have one expression that works for only one value but having issues trying to expand it for three.
Example - That works for just counting how many times APPLE is listed in the Fruit Column
I want to count how many times, APPLE, PEAR or PLUM are in the same column.
Any Help?
Solved! Go to Solution.
Hi @chris_jones - use the OR command or the || method
Total Count =
CALCULATE ( COUNTROWS ( 'MyData' ),
OR('MyData[Fruit] = "APPLE", OR('MyData[Fruit] = "PEAR", 'MyData[Fruit] = "PLUM")))
Total Count =
CALCULATE ( COUNTROWS ( FILTER( 'MyData' ),
'MyData[Fruit] = "APPLE" || 'MyData[Fruit] = "PEAR" || 'MyData[Fruit] = "PLUM"))
Either of those should work.
Hope this helps
David
Total Count = CALCULATE ( COUNTROWS ( 'MyData' ), 'MyData[Fruit] in { "APPLE","PEAR","PLUM" } )
Hi @chris_jones - use the OR command or the || method
Total Count =
CALCULATE ( COUNTROWS ( 'MyData' ),
OR('MyData[Fruit] = "APPLE", OR('MyData[Fruit] = "PEAR", 'MyData[Fruit] = "PLUM")))
Total Count =
CALCULATE ( COUNTROWS ( FILTER( 'MyData' ),
'MyData[Fruit] = "APPLE" || 'MyData[Fruit] = "PEAR" || 'MyData[Fruit] = "PLUM"))
Either of those should work.
Hope this helps
David
User | Count |
---|---|
12 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
14 | |
11 | |
7 |