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

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

Reply
Anonymous
Not applicable

Dynamic constant line based on different values with slicer

Hello Experts,

 

Tried to find many ways but nothing helped yet, would need help on dynamic contatnt line based on values of a column and a slicer selected.

Snap attached, the requirement is , 


 Slicer/Filter - Domain Column
Stack Chart of - Metric column, Provided we already have a stack chart prepared, just need to add the dynamic constant line for showing the targets
Contant line - Target 2021 column

 

For example, If i select Domain= A, for Test Auomation stcack chart the Target line should show as 23 and for Car Automation stcack chart the Target line should show as 45

naresh_nsn_0-1632125078241.png

Thanks in advance

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create a measure and use that in Analytic pane in visualization -> contact line -> Fx and choose measures

Test Automation = calculate(sum(Table[Value]), filter(Table, Table[Metric]=" Test Automation"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Create a measure and use that in Analytic pane in visualization -> contact line -> Fx and choose measures

Test Automation = calculate(sum(Table[Value]), filter(Table, Table[Metric]=" Test Automation"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks @amitchandak , with some small changes it's working now.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors