Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

YOY Date Comparison Help

Hello!

 

I'm trying to build a YOY comparison, preferably refreshable, comparing last calendar month from both 2022 and 2021, in $$ across 8 different categories. The 2022 data appears correct, but when I put the 2021 info in, it appears to be displaying full totals in every column.  See screen shot below--what do I need to do to fix this one?

 

 

  • Anonymous 

    create  a dimension table and put the column into axis field

    dim = 
    VAR a=SELECTCOLUMNS(VW_CANCELLATIONS,"rejection description",VW_CANCELLATIONS[Rejection Description (Full)])
    VAR b=SELECTCOLUMNS('VW_CANCELLATIONS (2021)',"rejection description",'VW_CANCELLATIONS (2021)'[Rejection Description (Full)])
    return DISTINCT(UNION(a,b))

5 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Like a link to the field choices? Or a link to my dashboard?

      • ryan_mayu's avatar
        ryan_mayu
        Super User

         you can paste your rawdata in the reply or share the pbix file.