Forum Discussion

Shawry's avatar
Shawry
Icon for Helper I rankHelper I
2 years ago
Solved

How to display different time periods on the same chart?

Hi,    I have a Date table, which includes a column called 'Past 6 weeks or Prior Period', which essentially says 'Past 6 weeks', 'Prior Period' or 'False'.    I'm wanting to display the volume o...
  • sroy_16's avatar
    2 years ago

    Alternatively you can try this as well.

    You can also use these two measure and in the visual add both the measures to achieve this.

    Calls Past 6 Weeks =
    CALCULATE(
    SUM('Calls'[Volume]),
    'Date'[Past 6 weeks or Prior Period] = "Past 6 weeks"
    )

    Calls Same Period Last Year =
    CALCULATE(
    SUM('Calls'[Volume]),
    'Date'[Past 6 weeks or Prior Period] = "Past 6 weeks",
    SAMEPERIODLASTYEAR('Date'[Date])
    )