Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to substract Matrix1 from Matrix2 to get Matrix3 visuals

I want to achieve the third matrix (Matrix1 - Matrix2) in power bi. Is it possible?

6 Replies

  • Anonymous this is simply a time intelligence functionality. You need to add a date dimension in your model and then create a previous month measure and subtract it from the current month and that will do it. To add a date dimension, check my blog post here.

     

    Check my latest blog post Improve UX: Show Year in Legend When Using Time Intelligence Measures | PeryTUS IT Solutions  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      I created priorMonth as Calculate([Total Value], PreviousMonth(Date[Date]) but it is empty in matrix visual but in table visual, it appears with dates values. I don't know what I'm doing wrong.

  • Anonymous you do need to select a date or month to give context to the previous month, try selecting a date and then check the result.

     

    Check my latest blog post Improve UX: Show Year in Legend When Using Time Intelligence Measures | PeryTUS IT Solutions  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

  • Anonymous are you selecting a date for the current month ??

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      No, I'm not selecting date

    • Anonymous's avatar
      Anonymous
      Not applicable

      It works when adding date slicer.. Thanks