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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

how can i show different threshold in line chart

Hi , i want to show different threshold line in a line chart based on different category

Shubham_Yadav_0-1654678893940.png

 

also i want to show top 5 highest data in a line chart within 30 days. And threshold value should be straight line based on category type.

 

Any help will be appreciated.

 

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

Do you want to show top 5 highest types in the line chart? If I understand it correctly, do you need to show total 20 lines (3*5=15 thresholds + top 5 type values) in a line chart at the same time? 

 

Usually there are two solutions for the threshold lines. One is to use the Analytics pane to add constant lines. 

vjingzhang_0-1655099034581.png

 

The other is to create measures to get the threshold values from the respective table or set static threshold values for measures. For example,

Bike Low = CALCULATE(MAX('Table'[Low]),'Table'[Type]="bike")

Or

Bike high = 40

Add these measures to Y-axis or Secondary y-axis on the line chart. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors
Users online (7,988)