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 September 15. 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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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