Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Everyone,
I need to take count includes blank help me to achieve this, here is the sample for your reference
I need to display the Customer count with blank also and when I filter based on Id suppose Id is 1 then the count of a customer is 1 and when Id is 5 the count of a customer should display Zero as It's blank
how to create the measure for this logic?
one measure which takes the count of all rows includes blank and then when I filter for blank row it should display as ZEro
thanks in advance
Solved! Go to Solution.
Hi @Charu
Please try this then
Measure = VAR mymeasure = IF ( ISCROSSFILTERED ( Table1[Customer] ), COUNT ( Table1[Customer] ), CALCULATE ( COUNT ( Table1[Customer] ), Table1[Customer] <> BLANK () ) ) RETURN IF ( ISBLANK ( mymeasure ), 0, mymeasure )
Hi @Charu
Please try this MEASURE
Measure = IF ( ISCROSSFILTERED ( Table1[Customer] ), COUNT ( Table1[Customer] ), CALCULATE ( COUNT ( Table1[Customer] ), Table1[Customer] <> BLANK () ) )
I tried this measure It's returning (Blank) when I select Id =5,Instead blank I need to display ZEro
Hi @Charu
Please try this then
Measure = VAR mymeasure = IF ( ISCROSSFILTERED ( Table1[Customer] ), COUNT ( Table1[Customer] ), CALCULATE ( COUNT ( Table1[Customer] ), Table1[Customer] <> BLANK () ) ) RETURN IF ( ISBLANK ( mymeasure ), 0, mymeasure )
Thanks a lot, It's working...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |