cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
scaast Frequent Visitor
Frequent Visitor

sameperiodlastyear to current date

I'm trying to compare call volume YTD 2017 to call volume from 2016 for the same period (current date).  For example, today (2/16)...I'd like to compare call volume 1/1/2017-2/16/2017 to call volume from 1/1/2016-2/16/2016.  I have a calculated measure for YTD Calls Handled using the following formula:

 

YTD Calls Handled = TOTALYTD(SUM(dimVendorMetrics[Answered Calls]),dimDate[Date])

 

I then used the below formula to calculate 2016 YTD call volume, but it returns a value for the entire year of 2016.  How do I get the formula to calculate 2016 volume through the same date range of YTD 2017?

 

LY YTD Calls Handled = CALCULATE([YTD Calls Handled],SAMEPERIODLASTYEAR(dimDate[Date]))

 

Thank you for your help.  

1 ACCEPTED SOLUTION

Accepted Solutions
scaast Frequent Visitor
Frequent Visitor

Re: sameperiodlastyear to current date

Thank you!  I edited the formula to provide previous YTD totals by day and it worked perfectly.

 

=CALCULATE(sum(dimCallMetrics[Answered Calls]),
DATESBETWEEN(dimDate[Date],
FIRSTDATE(DATEADD(dimDate[Date],-365,DAY)),
LASTDATE(DATEADD(dimCallMetrics[Date],-365,DAY))
))

 

 

View solution in original post

2 REPLIES 2
Highlighted
Community Support Team
Community Support Team

Re: sameperiodlastyear to current date

Hi @scaast,

 

You can take a look at below link which has the same requirement:

Total Sales Last Year , Need Help!!

 

Regard,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |
scaast Frequent Visitor
Frequent Visitor

Re: sameperiodlastyear to current date

Thank you!  I edited the formula to provide previous YTD totals by day and it worked perfectly.

 

=CALCULATE(sum(dimCallMetrics[Answered Calls]),
DATESBETWEEN(dimDate[Date],
FIRSTDATE(DATEADD(dimDate[Date],-365,DAY)),
LASTDATE(DATEADD(dimCallMetrics[Date],-365,DAY))
))

 

 

View solution in original post

Helpful resources

Announcements
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.

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 Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

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: 6 members 1,998 guests
Please welcome our newest community members: