Forum Discussion
Different Values between Published Report and Desktop report for YTD
- 4 years ago
It looks like you're trying to do time intelligence against the date column of the A-4(PL) fact table, which is generally speaking a bad idea. You need to have a date dimension (aka calendar table) where you'll define the end of fiscal year which will let you use time intelligence functions without hardcoding a specific date in them.
You can use either Power Query or DAX to generate your date dimension, google with return a bunch of blog posts and videos.
Thank you lots for your reply, It crossed my mind that maybe I should use a calendar table. However for the time being I just managed to fix the issue by using a filter in totalytd formula instead of the YearEndDate that is hardcoded. In the future I will listen to your advice and use a Calendar Table.
Many thanks again