cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

How to transform Line and Clustered column chart to Line and Stacked chart

Hello, powerbi community! I would like to transform Line and Clustered column chart to Line and Stacked chart. The Line and Clustered column chart consist 3 measures as a data source. However while transforming I just dont want to stack measures which default ability of line and stacked charts. The 2 measures has certain amout of data in common. For example Total Vehicle Sales = Car Sales + Van Sales. As it can be seen below total sales depicted with yellow column and car sales with orange. I would like to transform it to second visual. Yellow is again total sales and orange is car sales. The total sales exceeding slightly car sales because it includes small sales number of van sales. 

 

Mikail_0-1632988934611.png

Mikail_1-1632988980566.png

 

Thanks in advance! 

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

First create a dim table as below:

vkellymsft_0-1633422620943.png

 

Then create a column as below:

rank = RANKX('Table (2)','Table (2)'[Measure 2],,DESC,Dense)

Then copy column category and make it sort by rank:

vkellymsft_1-1633422690736.png

 

Then use the copy one as column series and you will see:

vkellymsft_2-1633422744582.png

Check my sample .pbix file attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

First create a dim table as below:

vkellymsft_0-1633422620943.png

 

Then create a column as below:

rank = RANKX('Table (2)','Table (2)'[Measure 2],,DESC,Dense)

Then copy column category and make it sort by rank:

vkellymsft_1-1633422690736.png

 

Then use the copy one as column series and you will see:

vkellymsft_2-1633422744582.png

Check my sample .pbix file attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

Pragati11
Super User
Super User

Hi @Anonymous ,

 

Can you add details to your query please like screenshots, measure used, existing chart created, etc.?

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors