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.
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,
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 |
---|---|
109 | |
97 | |
80 | |
67 | |
60 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |