Forum Discussion

Eureka's avatar
Eureka
Advocate I
4 years ago
Solved

Comparison vs last year on same perimeter

Hello,    I want to create a metric to compare Sales Qty with last year but I want to remove the customers for which I have data for last year and not for this year.   here is my table: Custo...
  • amitchandak's avatar
    amitchandak
    4 years ago

    Eureka , Try a measure like 

     

    Diff =

     

    Var _ytd =  [ytd]

    car _lytd = [LYTD]

    return

    sumX(Values(Table[Customer]), if(not(isblank(_ytd) ) && not(isblank(_lytd) ) , _ytd-_lyd, blank())  )