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.
Tabel example:
A B C D E F Total
1 0 0 0 0 0 1
1 1 1 1 0 0 4
0 0 0 0 1 1 2
0 0 0 0 0 0 0
Can you please help and provide an example how to count the value in column "Total" using DAX. Thx.
Solved! Go to Solution.
totalA = Table1[A]+Table1[B]+Table1[C]+Table1[D]+Table1[E]+Table1[F] or you'd like to count the non-0s totalB = IF([A]=0,0,1)+IF([B]=0,0,1)+IF([C]=0,0,1)+IF([D]=0,0,1)+IF([E]=0,0,1)+IF([F]=0,0,1)
totalA = Table1[A]+Table1[B]+Table1[C]+Table1[D]+Table1[E]+Table1[F] or you'd like to count the non-0s totalB = IF([A]=0,0,1)+IF([B]=0,0,1)+IF([C]=0,0,1)+IF([D]=0,0,1)+IF([E]=0,0,1)+IF([F]=0,0,1)
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 |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |