Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 ) ) ) )
User | Count |
---|---|
102 | |
92 | |
85 | |
78 | |
71 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |