Forum Discussion

zhamada's avatar
zhamada
Regular Visitor
3 years ago

Date Problem with YTD

Fairly new to power BI, and I have a problem where my date table which relates a lot of my tables doesnt seem to be able to get YTD data for a yearly budget. Its almost as if when I make a measure to calculate it, the dates in my 'Budget' table aren't being recognized as dates. But when I put it into a visual it works fine with the master dates. I have tried quick measures as well and that returns a blank value.  I did have to append further dates to the date table to be able to show full budget, but idk if thats the problem. 

 

My goal is to be able to show the total amount of spend YTD (which hasn't been a problem), and a budget YTD in the same card. 

Here is how I was getting YTD spend 

Current YTD Spend = TOTALYTD(SUM(SPEND[Spend]), SPEND[Date])
When I use a similar formula for my budget table it does not actually get tyd but the whole year. 
 
The table is relating correctly on 2 other columns. 
 
What am I missing? 

 

 

 

 

2 Replies