cancel
Showing results for
Did you mean:
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]))

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

## Re: sameperiodlastyear to current date

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

DATESBETWEEN(dimDate[Date],
))

2 REPLIES 2
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, please consider Accept it as the solution to help the other members find it more quickly
Learning resources: Power BI
Highlighted
Frequent Visitor

## Re: sameperiodlastyear to current date

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

DATESBETWEEN(dimDate[Date],
))

Announcements

#### Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

#### Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

#### January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors