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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
naresh_nsn
Frequent Visitor

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

@naresh_nsn , 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"))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@naresh_nsn , 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"))

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.