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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I have an excel spreadsheet and I want to count al 0's and 1's seperate. The data is from a survey and 0 = no, 1 = yes.
Here is an example of the data:
Now if I try to visualize it, PowerBI doesn't count the 0's.
Is there a way to set this as a boolean or something?
Thanks!
Solved! Go to Solution.
Hi @Anonymous
In order to solve the problem, you need to do like this.
I guess you selected sum not to count
Hi, you can do it in many ways depending on how you will design the page.
One way should be creating a measure COUNTROWS( 'Table' ). You can use that measure in a visualization and the column with 0 and 1 as filter (slicer) for the visualization.
If you want to keep the number static you can build a measure for that specific scenario like:
Measure column1 when 0 =
CALCULATE(
COUNTROWS( Table )
, Table[Column1] = 0
)
That second way will always show the total result of that column for 0.
Hope this helps,
Happy to help!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!