Forum Discussion
Mark Date Table after everything
- 1 year ago
Hi Jmrc16, I believe you covered everything however I have few check points.
- Verify all time intelligence functions specially SAMEPERIODLASTYEAR DAX
- Review model relationships (1:* with Date)
- Remove legacy auto date tables if you have
- Format & optimize calendar columns
- Add hierarchies & sort orders
Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues. - 1 year ago
Hi Jmrc16
Marking dimCalendar as a proper Date Table and disabling the auto date/time option that’s essential for a stable time intelligence setup.
To make sure everything runs smoothly going forward, here are a few key checks:
-
Ensure your date table has a complete, continuous range without gaps (no missing dates).
-
Check that all time intelligence measures like SAMEPERIODLASTYEAR are using this custom table it's more sensitive to gaps or incorrect setup than others.
-
Verify there's a proper 1-to-many relationship from the date table to all fact tables.
-
Remove any auto-generated hierarchies still used in visuals and replace with your own.
-
Use Sort by Column (e.g., Month Name by Month Number) to keep visual order correct.
-
Format your calendar columns (like Month, Quarter) if needed for consistency.
-
Hi Jmrc16, I believe you covered everything however I have few check points.
- Verify all time intelligence functions specially SAMEPERIODLASTYEAR DAX
- Review model relationships (1:* with Date)
- Remove legacy auto date tables if you have
- Format & optimize calendar columns
- Add hierarchies & sort orders
Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.
- Jmrc161 year agoFrequent Visitor
Hi ajaybabuinturi
Why SAMEPERIODLASTYEAR is much special than others?- ajaybabuinturi1 year agoSuper User
Hi Jmrc16,
Unlike other DAX(DATEADD, TOTALMTD, etc) functions, SAMEPERIODLASTYEAR DAX strictly depends on the date column's integrity. Like NO Missing dates, proper one-to-many relationship from date to fact tables. If the range isn’t continuous or has missing entries, it might return blank or incorrect results for periods that don’t align cleanly year over year.Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.