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
Frankie_Vannini
Advocate I
Advocate I

line chart with secondary y axis and legend

Hi there

is there any plan to add this feature to the standard Line Chart?

1 ACCEPTED SOLUTION

Hi @Frankie_Vannini 
No core line/area chart doesn't have all the functionalities as attached.
A comparison chart is available at market place so you can download it from there.

You can suggest adding these functionalities as idea by the link:

https://ideas.fabric.microsoft.com/

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

View solution in original post

8 REPLIES 8
Frankie_Vannini
Advocate I
Advocate I

@v-yilong-msft @Ritaf1983 

 

Hi there, my answer finally is there after it has been removed from Spam
I've not clearly understood if with the line chart I can obtain something as described above, something that is similar on the result I can obtain using the Comparison Chart Visual (that indeed has other problems)
https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA200002554?tab=Overview

 Thanks in advance for your help
F

Hi @Frankie_Vannini 
No core line/area chart doesn't have all the functionalities as attached.
A comparison chart is available at market place so you can download it from there.

You can suggest adding these functionalities as idea by the link:

https://ideas.fabric.microsoft.com/

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

v-yilong-msft
Community Support
Community Support

Hi @Frankie_Vannini ,

Just as @Ritaf1983  says, line chart with secondary y axis and legend has already existed.

vyilongmsft_0-1710137954202.png

vyilongmsft_1-1710138002872.png

We can add Secondary y-axis and Legend. I think you can read this document and the topic for a further study: Create line charts in Power BI - Power BI | Microsoft Learn and Solved: Add a secondary Y axis on a line chart with Legend - Microsoft Fabric Community

 

 

 

Best Regards

Yilong Zhou

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

Ritaf1983
Super User
Super User

Hi @Frankie_Vannini 

This functionality already exists:

Ritaf1983_0-1709958432799.png

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

No it doesn't work if you add a legend using the related field. There are only third party paid solutions, so far

Hi @Frankie_Vannini 
2 Y axes are 2 different measures ...
It just cannot work in any other way logically...

Maybe I am missing something in your request, please show the expected results...

Hi @Ritaf1983, I'm trying to post a replay however the reply is marked as spam and it disappears. I don't understand why!

I already posted an answer but it disappeared ....

Anyway, to make it simple, assume this scenario as per the (dummy) table below where:
X-axis is a calculated column and is a number from -x to 0

Year is the fiscal year, so the 2023 data is actual and the 2024 data is also actual. The forecast number is the 2023 data plus a percentage I get from a RELATED dataset.
I then have one measure of the running total for the actual 2023 and 2024 and another measure of the running total for the forecast.

The aim is to get a graph where on the x-axis I have values from -x down to 0 (depending on the filters enabled on the dashboard), then I have a line with the 2023 data down to 0, a line with the 2024 data down to a certain value, and a line with the Fcast data down to 0. I currently use the value from running tital fcast as a tooltip and it displays the data correctly, but I would like to display it as a line along with the others as the x-axis is common. something like the attached "manual" line chart
I hope this helps to better explain 

Thanks in advance for your help

 

RUNNING TOTALS 1.png

 

X AXISyear (Legend)Running total values measureRunning total forecast
-202023112                                           123
-192023114                                           125
-182023116                                           128
-172023118                                           130
-162023120                                           132
-152023122                                           134
-142023124                                           136
-132023126                                           139
-122023128                                           141
-112023130                                           143
-102023132                                           145
-92023134                                           147
-82023136                                           150
-72023138                                           152
-62023140                                           154
-52023142                                           156
-42023144                                           158
-32023146                                           161
-22023148                                           163
-12023150                                           165
02023152                                           167
-202024110 
-192024115 
-182024120 
-172024125 
-162024130 
-152024135 
-142024140 
-132024145 
-122024150 
-112024155 
-102024160 
-92024165 



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.