Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have excel data imported into power bi and one of the columns is yes_no column which lists people who said yes and who said no and I want to count the numbe of Yes and the number of No and display the result in pie chart, I tried many solutions for my issue but nothing worked, I could do that in excel with countif() but not in power bi.
Please Advice,
Solved! Go to Solution.
Hi @yabasha,
You can create a measure below:
Percentage = DIVIDE(COUNT(Table1[yes_no]),CALCULATE(COUNT(Table1[yes_no]),ALL(Table1)))
Or you can drag the yes_no column to pie chart Values section and set the "Percent of grand total".
For details, you can download attached pbix file.
Best Regards,
Qiuyun Yu
Hi @yabasha,
You can create a measure below:
Percentage = DIVIDE(COUNT(Table1[yes_no]),CALCULATE(COUNT(Table1[yes_no]),ALL(Table1)))
Or you can drag the yes_no column to pie chart Values section and set the "Percent of grand total".
For details, you can download attached pbix file.
Best Regards,
Qiuyun Yu
I want to display the result as percentage.
Thanx,
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.