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.
Hi,
I have four data sources loaded that allow me to create a dashboard. On one of the visuals I have list of sites with the amount of people that have atteneded using filters. I am trying to create a percentage sum of total population that have attended each site(25 people have gone in, total staff at that site is 100. 25% have visited) however to do that I need to build the total number of staff for each site to complete the percentage math.
There are two options. I can use one table that has the location each person works (so go count each occurance of the site name in each line of the visual, then use the varible to create the math) or just point to the a cell in another table that has the count of staff. To do that I would still need to match each line in the visual then have PowerBI search for the site name in table B and finally go to cell that has the number of staff.
Frankly - I am lost and have no idea. I have tried some variations of COUNT,SUMMARIZECOLUMNS etc. Any help would be great.
Tks!
@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
You can try measures like
divide( countrows(Table), calculate(countrows(Table), allselected()))
Percent of SubTotal or Total: https://www.youtube.com/watch?v=6jTildcV2ho&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=37
Thanks. The divide function was what I was after. I was trying to do the math without it
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 |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |