Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
JP_G
Regular Visitor

Matrix Values without Sum

Hi All,

 

Need some help. I'm have a list of part numbers and the unit price I bought it at. I'm looking to do a matrix so I can see the unit price across the months of 2023.

 

Problem I'm encountering is that my raw data is in entry format so the value is being summed. I know by clicking the down arrow I can change it to something else, but there's no option to just display all the different unit prices?

 

Below please find the example I created:

Raw Data:

Part NumberUnit PriceDate
1231.0001/01/23
1231.0501/01/23
1231.0002/01/23

 

Matrix output:

Part NumberJanuaryFebruary
1232.051.00

 

1 ACCEPTED SOLUTION

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:

vyueyunzhmsft_0-1686794923357.png

(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)

 

vyueyunzhmsft_1-1686794957339.png

 

(3)Then we can put this field on the visual and then we can get this result :

vyueyunzhmsft_2-1686795023165.png

 

 

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

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Show the exact result that you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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 NumberJanuaryFebruary
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,

Please find attached my solution file.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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:

vyueyunzhmsft_0-1686794923357.png

(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)

 

vyueyunzhmsft_1-1686794957339.png

 

(3)Then we can put this field on the visual and then we can get this result :

vyueyunzhmsft_2-1686795023165.png

 

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.