cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aaron1225 Regular Visitor
Regular Visitor

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

1 REPLY 1
Highlighted
greggyb New Contributor
New Contributor

Re: Time Intelligence- YTD

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

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 320 members 3,243 guests
Please welcome our newest community members: