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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
joshuacisneros
Regular Visitor

Comparing values of the same column

Hi everybody, my english is so bad, but I need your help to create a matrix visual like the photo attached.
1)I want to compare the prices from a list that I have. (point 1) Dividing the price of each product row for a column transposed of the same list of products (point 2), as result a matrix with values in percent (point 3) for the purpose of concluding if products A,B,C are more expensive or cheaper than the rest of products. (point 4).

I hope you can understand me ❤️

P.S: I think that it's a linear algebra problem because de column is (n rows x 1 column) multiplying the column transposed ( 1 row x n columns) as result a matrix (n rows x n columns). Example: 4 products generate 16 possible results.Example.png

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


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

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


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

@Ashish_Mathur @joshuacisneros

 

I used somewhat different approach using CrossJoin. But your solution is better as mine can get bulky in case of large amount of data.

 

Just adding for reference PBI

OMG!!!!, Thanks a lot, your solution it's perfect! That was exactly what I was looking for.

You are welcome.


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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.