Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello Everyone,
I have a dataset that is imported in the desktop version and includes city names and the success of a test in those cities as follows. test_success is a binary column where 1 represents success.
city | test_success |
a | 1 |
b | 0 |
c | 0 |
a | 1 |
d | 1 |
c | 0 |
b | 1 |
I would like to create a table or pie chart that shows the total number of tests held in each city as well as the proportion of success of the tests in each city, so the outcome would show three columns:
So, in this case, the percentage of success rate in each city is equal to the total number of success divided by the total number of tests in each city.
I hope someone can help me with this request.
Much appreciated
Solved! Go to Solution.
You can calculate in following way
Proud to be a Super User!
Thank you for your reply 🙂
Could you please Mark my post as a solution?
Proud to be a Super User!
You can calculate in following way
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
64 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
81 | |
72 | |
58 | |
45 | |
44 |