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
Anonymous
Not applicable

add a reference line to stacked column and line chart

Hey everyone, 

 

I am struggleing to get a visual to work and looking for some advise. 

 

example2.JPG

 

I have the above graph with % on the columns and total number on the line

I want to be able to add a constant line at 95% as a goal line like I can do in a regular column chart

 

can this be done?

5 REPLIES 5
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Create a measure as below:

 

Measure = 0.95

 

Make it show as percentage,then go to format>Y axis>show secondary : on, align zeros : on:

v-kelly-msft_0-1617087287050.png

And you will see:

v-kelly-msft_1-1617087300091.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Anonymous
Not applicable

hey @v-kelly-msft 

 

that doesn't work, I'm trying to show a % month over month vs a % goal (constanat line or measure) vs the total contact volume in a number format

 

here's some dummy data

contactsview.JPG

 

here is what I'm looking to make in pbi, this was made in Tableau since I have loads more experience with that tool.  the bars are the total volume, the line is the % capture rate, and the dotted line is the goal

 

exampletableau.JPG

Hi  @Anonymous ,

 

Is below what you need?

v-kelly-msft_3-1617844427222.png

 

If so,create a line and stacked column chart,mark format setting as below:

v-kelly-msft_1-1617844135885.png

Go to format>Y axis,under show secondary>start:0,

v-kelly-msft_2-1617844206364.png

 

For details,pls check the .pbix file attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

Anonymous
Not applicable

@amitchandak here is the issue, it doesn't work becuase it want's to compare the 95% to the right axis which is in numbers. 95% shown below in the dark blue line.

 

example3.JPG

amitchandak
Super User
Super User

@Anonymous , Create a measure like

Measure = .95

and mark that as % in Measure Tools.  and add that to visual

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.