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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

DATESINPERIOD Extending Beyond Calendar Table

Hi everyone, I'm trying to get the 12 month rolling data from a visual. I'm using DATESINPERIOD as shown in below DAX measure but I'm getting values after the maximum date of my table calendar (my calendar goes up to ~1 year after today, so the max date on the calendar table is Sep 6).

 

I've tried googling and searching the forums for an answer but I still cannot fix the error.

 

andrej_prolic_0-1694277762532.png

andrej_prolic_1-1694277852290.png

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi, for everyone still having this issue I managed to fix it by unchecking the Auto date/time in the workbook options. Weird fix but now it seems to work correctly.

 

andrej_prolic_0-1694279526306.png

 

Greg_Deckler
Community Champion
Community Champion

@Anonymous DAX TI functions should be avoided. You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000

Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008

 

You may also find this helpful:



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks Greg! I'll give it a read.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.