Forum Discussion

learning_dax's avatar
learning_dax
Helper II
4 years ago

No Time Intelligence Functionality

Hi all, 

I have a complicated/open-ended issue I can't seem to solve or debug. Mostly revolving around time intelligence functions being displayed as cards.  As background information, I do have a separate date table connected to my dataset with both formats aligning, so I don't think its a formatting issues. 

I've attached screenshots below. Every variation of these calculations I've tried as cards but I only get BLANK as a response. However, when i put them in tabular format they seem to work. Some of the functions in the left table include: TOTALYTD, ParallelPeriod, Dateadd (-1), & others. I only want them as cards because I'm trying to display YTD & MTD counts for my dataset as of a specific day of the month (for example if I refresh the dashboard on February 15, I want the counts as of that day when I refresh not just all of February because sometimes we have future data). The only way I have been able to do so (not with TOTALYTD/TOTALMTD because they give me blanks) is this formula which I scoured off of the web:

Calculate([StartCount],FILTER('Dimdate','Dimdate'[Date] >= DATE(YEAR(TODAY()),MONTH(TODAY()),01)),FILTER('DimDate','DimDate'[Date] < TODAY()))

And the above was only for MTD Counts I cannot seem to figure out YTD. I am relatively new to DAX and struggling to debuff this issue as time intelligence & card values are easiest for me to display. Any suggestions/help? 

 

4 Replies