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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
dangulo
Microsoft Employee
Microsoft Employee

Set start date of a chart programatically

Hey there, Is there a way to set the start date of a chart relative to a point on time (eg: NOW() - 7) or by using an expresion (eg: MIN(CALENDAR[Date])) in order to have a consistent X scale? I have tried introducing empty points at the start of the dataset but did not work either.

dangulo_0-1625486736175.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dangulo , the start, and end are fixed values. I doubt you can give a variable here.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
dangulo
Microsoft Employee
Microsoft Employee

Thank you, Would there be anyway of fixing the X axis to a number of days and update it dinamically?

amitchandak
Super User
Super User

@dangulo , the start, and end are fixed values. I doubt you can give a variable here.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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