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.
Matrix below shows day number as columns, and customers by row. The values are simply a count of the calls.
I
I need the values to show either a 1 or a 0 depending on if there are values in that cell. so when Count(NID) is blank, then 0 ELSE 1.
Then the totals at the bottom of the matrix should sum up the 1s down the column,
Any ideas?
Solved! Go to Solution.
hi @rax99
Try this
Measure = IF ( HASONEFILTER ( table1[Customer] ), IF ( COUNT ( Table1[NID] ) > 0, 1, 0 ), SUMX ( VALUES ( table1[Customer] ), CALCULATE ( IF ( COUNT ( Table1[NID] ) > 0, 1, 0 ) ) ) )
Give this MEASURE a shot
Measure= IF ( HASONEFILTER ( table1[Customer] ), IF ( COUNT ( Table1[NID] ) > 0, 1 ), SUMX ( VALUES ( table1[Customer] ), CALCULATE ( IF ( COUNT ( Table1[NID] ) > 0, 1 ) ) ) )
Brilliant That worked! Any idea how to populate the rest of the matrix with 0s where there is no value?
hi @rax99
Try this
Measure = IF ( HASONEFILTER ( table1[Customer] ), IF ( COUNT ( Table1[NID] ) > 0, 1, 0 ), SUMX ( VALUES ( table1[Customer] ), CALCULATE ( IF ( COUNT ( Table1[NID] ) > 0, 1, 0 ) ) ) )
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |