Showing results for 
Search instead for 
Did you mean: 
sjoshi Regular Visitor
Regular Visitor

How to get previous year total for current not matter what date is selected in date slicer by user



I'm using below expression for calculating prior year end but below expression gives me previous year total for the year which is entered in slicer by the user. I want below expression to return always previous year for today's/current date not for the date selected in slicer. Our fiscal year starts from 1 July


CheckPriorYearYTD = CALCULATE([Check],DATESYTD(DATEADD('Time Dim'[Date],-1,YEAR),"6/30")) 


EX: Today we enter Slicer date as 01/02/2015 then above expression giving total of FY 2014 but it should give me total of FY 2018 as current date is 09/11/2018 , FY 2019 Q1


Let me know if you need any more details




v-cherch-msft Super Contributor
Super Contributor

Re: How to get previous year total for current not matter what date is selected in date slicer by us

Hi @sjoshi


You may try to use TOTALYTD Function. Here is the reference for you. If it is not your case, please share some data sample and expected output. You can upload it to OneDrive or Dropbox and post the link here.





Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 6 members 882 guests
Please welcome our newest community members: