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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Dynamic Reference line based on measure in X-Axis

Hi Team,

 

Its urgent, Please help in adding reference line in X axis based on the condition.

I have created a measure 

Red/Black = IF( AVERAGEX(VALUES('src_horizon v_horizon_aggregate'[FISCPER]), INT('src_horizon v_horizon_aggregate'[FISCPER])) <
               AVERAGEX(VALUES('src_horizon v_horizon_aggregate'[CURRENT_FISCPER]), INT('src_horizon v_horizon_aggregate'[CURRENT_FISCPER])),"Red","Black")
I am using this measure to do conditional formatting in Table and Matirx format, which is working as expected.
Raks_1-1686653218625.png

Now I need to create similar for Line&Clustered column chart where reference line should be added till week 18 as per the above logic as shown in the below pic. Igone the week number in the below pic, practically the same line should be on week18.

Raks_2-1686653358165.png

Thanks in Advance !

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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