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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
bluestonewales
Frequent Visitor

Reference Line on x-axis

Hi, I am looking to draw a reference line on the x axis of a chart whcih range from -70 weeks to 0 weeks. I can work out where the reference should be (it varies dynamically based upon slicer selection and today's date). In the first case I have a measure that shows the value -14 as a card but need this to be a vertical line that as time progresses would move along the axis to 0

 

Any help would be greatly appreciated.

 

Thanks

 

Simon

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi bluestonewales,

 

Could you please share some sample data or some screenshots, and explain more details about your requirement?

 

Regards,

Jimmy Tao

screensupport.JPG

The charts above are based upon a series of filters and represent a specific product (label filter) ona specific date (choosen by financial period, financial period week number and break type which is either a friday or monday). The effect of all of the filtessr is to choose a specific date (for each year) and I show the data relating to that date for 2018 and 2019. The x axis for both charts ranges from -70 to 0. I have built a measure that calculates how many weeks out from the 2019 date we are and this is shown in a card bottom right (shown as -14).

 

Ideally I am looking for a red line that shows an x axis at -14 but that would vary depending on the measure. It can be a different visual sitting on top of the other charts.

 

Any help would be appreciated.

 

Simon

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.