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
mohitgup20
Frequent Visitor

creating bar chart with legend as y-axis

Hi Team,

 

I am doing a Tableau to PowerBI migration and come across a visual that needs to be achieved. Can you please help me out if it's possible to do the same in PowerBI or using some extension?

Not able to add the second column Volume (kg) and VM in power bi as it comes as a legend.

 

Expected output from Tableau

mohitgup20_0-1699934224388.png

 

Current output in PowerBI

mohitgup20_1-1699934239319.png

@v-cgao-msft @parry2k  @amitchandak @Ritaf1983 @lbendlin 

2 ACCEPTED SOLUTIONS
vicky_
Super User
Super User

Use the matrix visual, and use cell formatting to achieve that

vicky__0-1699935528985.png

vicky__1-1699935687951.png

 

View solution in original post

Ritaf1983
Super User
Super User

Hi @mohitgup20 
You can achieve it with hierarchies/matrix and conditional formatting (but both bars will be with the same color).

 

Ritaf1983_1-1699936997248.png

i attached a pbix you can follow my steps

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @mohitgup20 
You can achieve it with hierarchies/matrix and conditional formatting (but both bars will be with the same color).

 

Ritaf1983_1-1699936997248.png

i attached a pbix you can follow my steps

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

vicky_
Super User
Super User

Use the matrix visual, and use cell formatting to achieve that

vicky__0-1699935528985.png

vicky__1-1699935687951.png

 

Hi @vicky_ , I used Matrix Visual for the same but the only limitation it is having currently is if there is a negative value then both axis start points is getting different.

I hope I'm understanding your issue properly - but if you want the bars to always point to the right, then you can use the ABS() function to get the absolute (positive) value. So instead of using BL directly, create a measure like BS2 = ABS(SUM([BL])) and use that in your visual instead.

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.

Top Solution Authors