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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.