Forum Discussion
AlB
Community Champion
7 years agoSAMEPERIODLASTYEAR(DATESYTD( )) different from DATESYTD(SAMEPERIODLASTYEAR( ))??
Hi all, This came up as I was trying to answer this post by hbolo (no need to read it to answer this question). Here is the pbix We have a Date table with dates between 01/01/2018 and today (Jan 3...
- 7 years ago
This is just another case where the Time Intelligence functions don't work as expected because the Date table is wrong.
Remember: Time Intelligence functions are guaranteed to work *only* if the Date table is "complete" - meaning you need all the dates until the end of the year.
Not doing that, what happens is that the year 2019 seems made by 15 days, so if you include all of them than it seems you have an entire month, or an entire year.... You are violating the assumption made by Time Intelligence and you cannot trust any result at that point.
AlB
Community Champion
7 years agoPerhaps very knowledgeable people like Zubair_Muhammad, Greg_Deckler, MFelix would care to chip in?
Many thanks
MFelix
Super User
7 years agoHi @AIB,
Check the blog post below were it shows different options mayve is a good starting point to get the best option.
http://radacad.com/dateadd-vs-parallelperiod-vs-sameperiodlastyear-dax-time-intelligence-question
Regards,
MFelix
Check the blog post below were it shows different options mayve is a good starting point to get the best option.
http://radacad.com/dateadd-vs-parallelperiod-vs-sameperiodlastyear-dax-time-intelligence-question
Regards,
MFelix