Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 43 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 125 | |
| 116 | |
| 77 | |
| 54 |