cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
timmyeal
Helper I
Helper I

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?

table.PNG

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@timmyeal 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.

 






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

@timmyeal 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.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





parry2k
Super User
Super User

@timmyeal are you selecting a date for the current month ??

 

 






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





It works when adding date slicer.. Thanks

No, I'm not selecting date

parry2k
Super User
Super User

@timmyeal 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.

 






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





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.

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors