Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I've struggling to create a very specific report where what I want is to use this Matrix down below (which is calculated by using % Total of the Row) to create a Line Chart.
How can I achieve the same result from this Matrix in a Line chart?
Solved! Go to Solution.
Hi @jvbs ,
I made a simple sample imitating your data.
You can create a measure to help you meet your needs:
% total =
DIVIDE (
SUM ( 'Table'[Sales] ),
CALCULATE ( SUM ( 'Table'[Sales] ),ALL( 'Table'[Product] ) )
)
Then use this measure instead of the “sales” in your matrix.
Then change the format in value pane to “show values as percentage of row total”.
Then click line chart in the visualization filed> Add date to the axis> add the measure to the value and category as legend.
You will get a result like this:
A demo is attached for your reference.
Hope it helps,
Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @jvbs ,
I made a simple sample imitating your data.
You can create a measure to help you meet your needs:
% total =
DIVIDE (
SUM ( 'Table'[Sales] ),
CALCULATE ( SUM ( 'Table'[Sales] ),ALL( 'Table'[Product] ) )
)
Then use this measure instead of the “sales” in your matrix.
Then change the format in value pane to “show values as percentage of row total”.
Then click line chart in the visualization filed> Add date to the axis> add the measure to the value and category as legend.
You will get a result like this:
A demo is attached for your reference.
Hope it helps,
Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much Caitlyn,
That was exactly what I needed!!
@jvbs Select the matrix and then click on Line chart?
Sorry @Greg_Deckler couldn't give much details at first sight.
But unfortunately it changes the "% total per row" that i've made on my matrix.
@jvbs Whatever you were using in your columns, put that in your Legend.
Forgot to do that on my last reply, sorry.
But even doing that the results keeps different, for example, month 2021-08:
And how it should be:
This behavior keeps happening. Do you know how I can achieve what i want?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
71 | |
37 | |
30 | |
28 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
36 |