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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sy898661
Helper V
Helper V

Different units of measurement in one chart visual?

Hello!!

 

I was wondering if this was possible:

 

I currently have a line and stacked column chart.

 

Capture.PNG

 

The "column values" are in Grams (cumulative Actual # grams )

The "line values" are also in Grams (cumulative Planned # grams)

 

We wanted to add in % values (yeild variance to plan***, and target 95%) to the Line values area, but when I do that the graph doesnt display as i would hope.

 

***yeild variance to plan = the % of what was made compared to what we planned

 

I know in Excel you can choose how you want to display your data (line, column, etc) even if the line-units dont match up with the other line-units (say, one can be in grams and the other in % without messing up the graph)

 

This is what we are hoping for:

2.PNG

 

How can I do this in PBI (if possible)? 

 

Thanks so much!

1 ACCEPTED SOLUTION

Hi @sy898661 ,

 

With the build-in Line and stacked column chart, we cannot build a dual y-axis chart with two different y-axis (one for planned and another for percentage value), but we can multiple the percentage with the maxium planned value as a workaround, Following is the measures we used:

 

Actual Value = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),'Table'[Date]<=MAX('Table'[Date]) && 'Table'[Category]="Actual"))

 

Planned Value = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),'Table'[Date]<=MAX('Table'[Date]) && 'Table'[Category]="Planned"))

 

Percentage of Planned = DIVIDE(CALCULATE([Actual Value]),CALCULATE([Planned Value]),0)

 

Target Percent = 0.95

 

Percentage In Line Chart = [Percentage of Planned] * CALCULATE([Planned Value],ALLSELECTED('Table'))

 

Target In Line = [Target Percent] * CALCULATE([Planned Value],ALLSELECTED('Table'))

 

 

1.jpg

 

Or we can use a custom value Multiple Axes chart in the Power BI Visual marketplace which can use multi y-axis, but it does not support draw area for line chart:

 

2.jpg

 


Best regards,

 

Community Support Team _ Dong Li
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

4 REPLIES 4
Greg_Deckler
Super User
Super User

Well, there are quite a few options for controlling the y-axis in that chart visualization for both the line and column axis values but I am not aware of anything for controlling yet anther independent y-axis for your line axis. I'm thinking that your best bet is to somehow normalize your second set of values to your first set of values. I can't see in your chart what your values are for your y-axis line so not exactly sure it would work but I am assuming that you have values in your first set that are greater than 1 and your % are less than 1?


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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hey @Greg_Deckler thank you so much for the speedy reply!!! 🙂

 

Yess here are the numbers for my first set of data:

Capture.PNG

 

As for % values, for this chart they range from 0-1

(but I do have another graph that has a % value at 110%--I can worry about that later though lol!)

Hi @sy898661 ,

 

With the build-in Line and stacked column chart, we cannot build a dual y-axis chart with two different y-axis (one for planned and another for percentage value), but we can multiple the percentage with the maxium planned value as a workaround, Following is the measures we used:

 

Actual Value = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),'Table'[Date]<=MAX('Table'[Date]) && 'Table'[Category]="Actual"))

 

Planned Value = CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),'Table'[Date]<=MAX('Table'[Date]) && 'Table'[Category]="Planned"))

 

Percentage of Planned = DIVIDE(CALCULATE([Actual Value]),CALCULATE([Planned Value]),0)

 

Target Percent = 0.95

 

Percentage In Line Chart = [Percentage of Planned] * CALCULATE([Planned Value],ALLSELECTED('Table'))

 

Target In Line = [Target Percent] * CALCULATE([Planned Value],ALLSELECTED('Table'))

 

 

1.jpg

 

Or we can use a custom value Multiple Axes chart in the Power BI Visual marketplace which can use multi y-axis, but it does not support draw area for line chart:

 

2.jpg

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thank you so so much @v-lid-msft this is awesome! (and perfect, it is exactly what I needed!!!) 🙂

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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