Forum Discussion
Percent increase/decrease between 2 years only - 2021 vs 2022
Hi, please advise - I have used the below quick measure to calculate the % difference between billed quantity from 2021 to 2022, however there's another column popping up with 0.00% values. Please advise how to exclude this column from my table visual - Thanks!
Hi Nicky_12345 ,
The second column is displayed because of how your visual is built. It looks like you are using a matrix where your measures ("Billed Quantity" + "2021 vs 2022 %") are broken down by some kind of category (the first column on the left which is not shown in your picture) as well as date/year (column "2021" + "2022"). So both of your measures have a filter on year (Year = 2021 OR Year = 2022) which leads to 2 different columns per year.
To solve this you could create two more measures:
Billed Quantity 2021=CALCULATE(SUM('Append1'[Billed Quantity]),'Calendar'[Date].[Year] IN { 2021 })Billed Quantity 2022=CALCULATE(SUM('Append1'[Billed Quantity]),'Calendar'[Date].[Year] IN { 2022 })Then use the three mesaures in your visual and do not drag in date/year.Let me know if this helps 🙂
3 Replies
- tackytechtomMost Valuable Professional
Hi Nicky_12345 ,
The second column is displayed because of how your visual is built. It looks like you are using a matrix where your measures ("Billed Quantity" + "2021 vs 2022 %") are broken down by some kind of category (the first column on the left which is not shown in your picture) as well as date/year (column "2021" + "2022"). So both of your measures have a filter on year (Year = 2021 OR Year = 2022) which leads to 2 different columns per year.
To solve this you could create two more measures:
Billed Quantity 2021=CALCULATE(SUM('Append1'[Billed Quantity]),'Calendar'[Date].[Year] IN { 2021 })Billed Quantity 2022=CALCULATE(SUM('Append1'[Billed Quantity]),'Calendar'[Date].[Year] IN { 2022 })Then use the three mesaures in your visual and do not drag in date/year.Let me know if this helps 🙂- Nicky_12345Frequent Visitor
Hi tomfox,
Thank you so much, it works! 😄
- Nicky_12345Frequent Visitor
tackytechtom Please advise how to create another measure for sum of sales for July 2022 and then another measure for August 2022. Thanks!