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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
hmil
Frequent Visitor

Moving Alert Line for Line Graph

I have a line graph showing what quantity is available of a certain capacity.  On the same page I have a location slicer.  I would like to put an alert line at 75% of the total capacity so the user knows when to order more hardware.  This line must react to the slicer.  How do I do this?

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @hmil,

 

I make a test using my sample table and get the following chart. If the chart doesn’t return your expected result, please share sample data of your table here and post desired result.

 

1. Enter the data accordingly and create the measure as below.

 

per = 
var a = CALCULATE(SUM(Table1[quantity]),ALLEXCEPT(Table1,Table1[location]))
var b =CALCULATE(SUM(Table1[certain]),ALLEXCEPT(Table1,Table1[location]))
return
a/b

2. Create the line visual as below and add a Constant Line in the Analytics pane.

 

1.png

For more detail, please check the pbix as attached.

https://www.dropbox.com/s/0k1xvc96tcztx4u/Moving%20Alert%20Line%20for%20Line%20Graph.pbix?dl=0

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @hmil,

 

Does that make sense? If so , could you please mark this answer as a solution?

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors