Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Time Intelligence- YTD

Sorry for the remedial question here--in the past I have been able to get the YTD function to work but tried it three different ways and can't seem to get it to work  Below are some sample data and questions: 

first calc: YTD Sales = TOTALYTD([Total Sales],dimDate[Date])

second: YTD Sales 2 = CALCULATE(SalesYTDTest[Total Sales],DATESYTD(dimDate[Date]))

third: YTD Sales 3 = CALCULATE(SUM(SalesYTDTest[Sales]),DATESYTD(dimDate[Date]))


Seems like one of these would work...anythoughts?



YTD Sales=Capture.PNGCapture2.PNG

Resident Rockstar
Resident Rockstar

Your relationship is backward. DimDate should be on the one side, Fact table should be on the many.

Helpful resources

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors