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 all,
This is my graph, seperated by fiscal year:
For the data labels, instead of whole numbers i would like it to show as % of Grand Total, like this:
However, BI is summing ALL the values of the whole graph, which is 2165, to get the %'s instead of aumming the years independently, which is giving incorrect %'s.
The total for FY2021 is 66.
The total for FY2022 is 965
FY 2023 is 1134.
So for "Not at all long" FY2021 should be 71%.
FY2022 should be 63%.
So on and so forth.
Attached is the data I am using.
https://docs.google.com/spreadsheets/d/1kQk0gRoMBUQ8qEpx6pfZZIm5FGLmvwfmNLqSxZeivH8/edit?usp=sharing
Help on steps to get what I need would be greatly appreciated!
Thank you!
Solved! Go to Solution.
Hi @e175429
you can write a measure as follows:
@e175429 - Sorry, that should be the original measure you have created, in my test file I have created this measure to define [count]
count =
COUNTROWS( Sheet1 )
So you could actually do this:
% in year =
Var num = [count]
VAR denom = CALCULATE( [count], ALL( Sheet1[Response]))
RETURN DIVIDE( num, denom )
Basically I saying that you should create two different measures. The measure [count] is a replacement for where you are using a count of your "How long was....." column
add the measure to y-axis! and also you can add it to tooltip
@e175429 - if you only want to see the % values, you can leave it out, it will just be referenced automatically when the % measure is invoked.
It's what is known as measure branching.
To apply my % of year measure, take out the count of your "How long was....." column and add the new measure to the Y-axis.
@e175429 - You can use the following DAX in a measure:
% in year =
VAR num = COUNTROWS( Sheet1 )
VAR denom = CALCULATE( [count], ALL( Sheet1[Response]))
RETURN DIVIDE( num, denom )
This respects the filter of year, quarter or question, in your small multiples but for the denominator it removes the filter of Response.
If this works for you, please accept it as the solution, to help for visibility for others.
I'm not sure what this means in your measure
[count]
@e175429 - Sorry, that should be the original measure you have created, in my test file I have created this measure to define [count]
count =
COUNTROWS( Sheet1 )
So you could actually do this:
% in year =
Var num = [count]
VAR denom = CALCULATE( [count], ALL( Sheet1[Response]))
RETURN DIVIDE( num, denom )
Basically I saying that you should create two different measures. The measure [count] is a replacement for where you are using a count of your "How long was....." column
Thank you very much. This worked.
I see.
Where do I put that measure? How do I apply it to the graph?
@e175429 - if you only want to see the % values, you can leave it out, it will just be referenced automatically when the % measure is invoked.
It's what is known as measure branching.
To apply my % of year measure, take out the count of your "How long was....." column and add the new measure to the Y-axis.
Hi @e175429
you can write a measure as follows:
Thank you very much. This worked.
Hey Selva,
What do I do with that measure exactly?
hi @e175429 ,
try like:
% of yearly total =
DIVIDE(
SUM(data[value]),
CALCULATE(
SUM(data[value]),
ALLEXCEPT(data, data[year])
)
)
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 |