Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
jvbs
Helper I
Helper I

How to use matrix data result to generate a new chart

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?

jvbs_0-1628881242046.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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”.

vcaitlynmstf_0-1629421482214.png

 

 

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:

vcaitlynmstf_1-1629421482225.png

 

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.

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

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”.

vcaitlynmstf_0-1629421482214.png

 

 

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:

vcaitlynmstf_1-1629421482225.png

 

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!!

Greg_Deckler
Community Champion
Community Champion

@jvbs Select the matrix and then click on Line chart?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.

2FVymSxs76.gif

 

@jvbs Whatever you were using in your columns, put that in your Legend.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Forgot to do that on my last reply, sorry.

But even doing that the results keeps different, for example, month 2021-08:

jvbs_0-1629128283379.png

And how it should be:

jvbs_1-1629128320035.png

 

This behavior keeps happening. Do you know how I can achieve what i want?

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors