Forum Discussion

AaronGlenn10's avatar
AaronGlenn10
Helper III
5 years ago
Solved

Bypass Page Filter

There are some other forum posts related to this subject, however still can't achieve the desired result.   I have a page that is filtered by addresses, and I'm trying to compare the year-over-year...
  • amitchandak's avatar
    5 years ago

    AaronGlenn10 , try measures like, with a separate a table

     

    This Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
    Last Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))

    diff = [This Year]-[Last Year ]
    diff % = divide([This Year]-[Last Year ],[Last Year ])