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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
msaninfo
Helper I
Helper I

Switch Measures values in chart

I calculcated measures for 2017, 2018, 2019 for some business units. see sample table below. Using this table, i need to create a stacked column chart.  (Axis should be year 2017, 2018, 2019) and stacked bar should be BU..  The challenge here is my year values are calculated from measures which can't drag under legend. so how to solve this case?Power bI query.PNG

Looking forward to hear back..

Many thanks,

Sankar 

1 ACCEPTED SOLUTION

Thank for your comments. I got a solution from the below link..

 

https://radacad.com/dax-measure-in-the-axis-of-the-power-bi-report

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @msaninfo , measures cannot be set as legend or axis. To approach the stacked column chart you expect, it seems Axis should be years, Legend should be BU and Values should be the measure.

v-jingzhang_1-1600682063779.png

 

Best Regards,

Community Support Team _ Jing Zhang

If this post helps, please consider Accept it as the solution to help other members find it.

Thank for your comments. I got a solution from the below link..

 

https://radacad.com/dax-measure-in-the-axis-of-the-power-bi-report

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.