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.
Hopefully someone can help - I am trying to calculate some percentages of anwers from some survey data.
The data is unpivoted and I wish to show the perctantage for each bullying behaviour. I am able to do this when I use the distinct respondent count and then adjust the column to show as a percentage of grand total (highlighted in yellow), however when i attempt to write dax to achieve the same thing, it is giving me the percentage based on the totals at row level, not the overall total of 111.
This is the dax measure I am using -
Solved! Go to Solution.
Hi, @Anonymous
try below
result =
DIVIDE(
[Respondent Distinct Count],
CALCULATE(
[Respondent Distinct Count],
removefilters('tablename'[bullying behaviour])
)
)
aha, try like:
try like:
Thanks for your help, adding in the remove filters to the DAX did the trick! 🙂
hi @Anonymous ,
try like:
Hi @FreemanZ
Thank you for your suggestion - unfortunately its still not givng me the answer - its dividing by 341, which is the number of rows, not the distinct respondent count (111) - see below
aha, try like:
try like:
Hi, @Anonymous
try below
result =
DIVIDE(
[Respondent Distinct Count],
CALCULATE(
[Respondent Distinct Count],
removefilters('tablename'[bullying behaviour])
)
)
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 |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |