Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I am trying to work out what measure I need to show the percentage of each column series value grouped by month.
The X axis is the date and I am using column series to split the case origin.
I plan to put the measure in a tooltip which would show:
I have a table called 'Case', the date column is 'Case'[CreatedDate] and split into series 'Case'[Origin]
Solved! Go to Solution.
Hi @JaseC1 ,
You can try the following code:
% =
DIVIDE(
SUM( 'Table'[Values] ),
CALCULATE( SUM( 'Table'[Values] ), ALLSELECTED( 'Table'[Type] ) )
)
Result:
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @JaseC1 ,
You can try the following code:
% =
DIVIDE(
SUM( 'Table'[Values] ),
CALCULATE( SUM( 'Table'[Values] ), ALLSELECTED( 'Table'[Type] ) )
)
Result:
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @JaseC1
When you drag the field/column across on to the visual pane, do you have the ability to click the little down arrow and select Show Value As? If so, you may be able to achieve what you're after without code/measure.
Otherwise you can create the below three measures:
Total Sales = SUM ( Table[Amount] )
Total by Cat = CALCULATE ( [Total Sales] , ALL ( Table[Category] )
As Percent = DIVIDE ( [Total Sales] , [Total by Cat] , 0 )
Hopefully the above makes sense and apologies for syntax errors - on phone.
All the best,
Theo
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
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 |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
42 |