Forum Discussion
Matrix Values without Sum
- 3 years ago
Hi , JP_G
Thanks for your sample data first!
According to your description, you want to " create a way so that the user can look across months rather than entries, like how the raw data is."
Here are the steps you can refer to :
(1)This is my test data:(2)First we need to create two calculated columns like this:
Column = YEAR([Date]) * 100 + MONTH([Date])Column 2 = RANKX( FILTER('Table','Table'[Part Number]=EARLIER('Table'[Part Number]) && 'Table'[Column]=EARLIER('Table'[Column])), CALCULATE(MAX('Table'[Unit Price]), ALLEXCEPT('Table','Table'[Unit Price])),,ASC,Dense)(3)Then we can put this field on the visual and then we can get this result :
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Ashish,
Trying to present the data in some type of format like this(maybe Matrix isn't the correct tool to be using:
| Part Number | January | February |
| 123 | $1.00, $1.05 | $1.00 |
Trying to create a way so that the user can look across months rather than entries, like how the raw data is.
Hi , JP_G
Thanks for your sample data first!
According to your description, you want to " create a way so that the user can look across months rather than entries, like how the raw data is."
Here are the steps you can refer to :
(1)This is my test data:
(2)First we need to create two calculated columns like this:
Column = YEAR([Date]) * 100 + MONTH([Date])Column 2 = RANKX( FILTER('Table','Table'[Part Number]=EARLIER('Table'[Part Number]) && 'Table'[Column]=EARLIER('Table'[Column])), CALCULATE(MAX('Table'[Unit Price]), ALLEXCEPT('Table','Table'[Unit Price])),,ASC,Dense)
(3)Then we can put this field on the visual and then we can get this result :
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly