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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.