cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

New Member

## 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 Number Unit Price Date 123 1.00 01/01/23 123 1.05 01/01/23 123 1.00 02/01/23

Matrix output:

 Part Number January February 123 2.05 1.00

1 ACCEPTED SOLUTION
Community Support

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

4 REPLIES 4
Super User

Hi,

Show the exact result that you are expecting.

Regards,
Ashish Mathur
http://www.ashishmathur.com
New Member

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.

Super User

Hi,

Please find attached my solution file.

Hope this helps.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Community Support

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

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors