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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply

Questions about new x-axis constant line

Love the new x-axis constant line but can't figure this out.  Maybe it is not possible?

 

First question: can you have a constant line show every x period e.g 01 July of every year, or 01 of each month?

 

Second question: is it possible to use a dax measure instead of manually inputting the constant line, e.g set it to always be first day of previous month?  That way it automatically stays relevant without having to manually change it every month.

1 ACCEPTED SOLUTION
DataZoe
Microsoft Employee
Microsoft Employee

Hi @dapperscavenger , It is a very cool feature but I don't think it can do measures just yet! You can get the same functionality by changing a line chart to a combo chart, then adding this measure to the columns (keeping the others on the lines):

First Day Last Month =
var month = month(TODAY())-1
var year = if(month = 0, year(today())-1,year(today()))
var month2 = if(month=0,12,month)
var lastmonthdate = date(year,month,1)
return
if(SELECTEDVALUE('Date'[Date]) = lastmonthdate, 1, blank())
 
DataZoe_0-1617413776334.png

 

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

View solution in original post

1 REPLY 1
DataZoe
Microsoft Employee
Microsoft Employee

Hi @dapperscavenger , It is a very cool feature but I don't think it can do measures just yet! You can get the same functionality by changing a line chart to a combo chart, then adding this measure to the columns (keeping the others on the lines):

First Day Last Month =
var month = month(TODAY())-1
var year = if(month = 0, year(today())-1,year(today()))
var month2 = if(month=0,12,month)
var lastmonthdate = date(year,month,1)
return
if(SELECTEDVALUE('Date'[Date]) = lastmonthdate, 1, blank())
 
DataZoe_0-1617413776334.png

 

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors