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 hope you're doing well. I have a slide with a filter and a table displaying Year, Zone, and Loc_Pop. When I select an option from the filter, the table updates to show Year, Zone, and Loc_Pop for the selected location. Here, I am considering "Cat_total" from the category.
Now, I'm looking to enhance the table by adding some additional columns:
Sum_of_the_Same_Zone_Loc_Pop:
Percentage_Zone:
Sum_of_All_Zone_Loc_Pop:
Percentage_All_Zones:
The output should something like the below:
I'd greatly appreciate any guidance on how to implement these additions effectively. Thank you so much for your help!
.pibx can be accessed from here (Google Drive Link).
Solved! Go to Solution.
Hi @0Experience
Please refer the file saved in following location
Measures:
Sum of the Same Zone Loc Pop:
This measure calculates the sum of the population in the same zone as the current location.
Sum_of_the_Same_Zone_Loc_Pop = CALCULATE(SUM(Table1[Loc_Pop]), ALL(Table1[Location]))
Percentage Zone:
This measure calculates the percentage of the total population that is in the same zone as the current location.
Percentage_Zone = FORMAT(DIVIDE(SUM(Table1[Loc_Pop]), [Sum_of_the_Same_Zone_Loc_Pop]), "0.00%")
Sum of All Zone Loc Pop:
This measure calculates the sum of the population in all zones.
Sum_of_All_Zone_Loc_Pop = CALCULATE(SUM(Table1[Loc_Pop]), ALL(Table1[Location]))
Percentage All Zones:
This measure calculates the percentage of the total population that is in all zones.
Percentage_All_Zones = FORMAT(DIVIDE(SUM(Table1[Loc_Pop]), [Sum_of_All_Zone_Loc_Pop]), "0.00%")
I hope this is helpful!
Thanks and Regards,
Sayali
Please mark the question solved when done and consider giving a thumbs up if posts are helpful!!
Proud to be a Super User!
Hi @0Experience
Please refer the file saved in following location
Measures:
Sum of the Same Zone Loc Pop:
This measure calculates the sum of the population in the same zone as the current location.
Sum_of_the_Same_Zone_Loc_Pop = CALCULATE(SUM(Table1[Loc_Pop]), ALL(Table1[Location]))
Percentage Zone:
This measure calculates the percentage of the total population that is in the same zone as the current location.
Percentage_Zone = FORMAT(DIVIDE(SUM(Table1[Loc_Pop]), [Sum_of_the_Same_Zone_Loc_Pop]), "0.00%")
Sum of All Zone Loc Pop:
This measure calculates the sum of the population in all zones.
Sum_of_All_Zone_Loc_Pop = CALCULATE(SUM(Table1[Loc_Pop]), ALL(Table1[Location]))
Percentage All Zones:
This measure calculates the percentage of the total population that is in all zones.
Percentage_All_Zones = FORMAT(DIVIDE(SUM(Table1[Loc_Pop]), [Sum_of_All_Zone_Loc_Pop]), "0.00%")
I hope this is helpful!
Thanks and Regards,
Sayali
Please mark the question solved when done and consider giving a thumbs up if posts are helpful!!
Proud to be a Super User!
@sayaliredij thanks for your answer, and sorry for the late reply.
I can see that "Sum_of_the_Same_Zone_Loc_Pop" and "Sum_of_All_Zone_Loc_Pop" have the same formula (as stated in your post, but the correct answer is in the attachment), as well as for the percentage calculation.
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 | |
63 | |
52 | |
36 | |
36 |
User | Count |
---|---|
80 | |
71 | |
58 | |
45 | |
44 |