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
andrmh
Helper II
Helper II

Visual Help: Line chart, with legend, and a dynamic constant line

Hi All,

 

Im after a way, to display a Line chart, with a legend, AND have said line chart always be able to plot a single constant line (which is dynamic/data driven).

 

Our scenario,

We need to display SLA % passed, by month, dissected by priority.
We also have a requirement for the SLA Target (say 90%) to be displayed as say a red line/shaded area/whatever, so we can see that the sla's by priority are clearly falling below target.

 

A Line and clustered column chart kind of gets me there - but the visual for it isnt what the business wants.

Making the column stacks as the sla then the target the line plot does plot what i need, but does a poor job of showing up/down slided between months, a line does this better than a column.

 

In this case:

- our X axis is month

- Our plotted value is SLA %

- Our legend is priority (so each priority's sla is plotted as a separate line).

 

The line chart (nor any chart it seems) allows me to plot multiple values AND have a legend. It seems to be one way or the other.

 

Does anyone know of a work around, or a marketplace visual that may help?

I've also considered doing this as KPI, but this wont behave correctly either, as i cant get the sla/priority plot split on a single graph to happen.

 

A sample of what im after, where the green line is a constant line coming from a datasource (measure). I added the line in myself to illustrate the sample.

 

sample.png

 

 

Thanks,

Andrew

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@andrmh,


Currently, it is not possible to create a dynamic constant line based on measure, for this issue, you can vote up this idea.

As a workaround for this issue, you can use "Line and clustered column chart" instead of Line chart, drag the measure to Line values section of the chart.

Regards,
Lydia

Community Support Team _ Lydia Zhang
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

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@andrmh,


Currently, it is not possible to create a dynamic constant line based on measure, for this issue, you can vote up this idea.

As a workaround for this issue, you can use "Line and clustered column chart" instead of Line chart, drag the measure to Line values section of the chart.

Regards,
Lydia

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

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.