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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Someone22
Frequent Visitor

Sort each column in matrix independences other columns

Hello,

 

Could you please support me?

 

I have a matrix in Power Bi, which is show the changes of materials.

Someone22_2-1750237248314.png

 

Currently i have 6 months, July, August, September, October, November, December. The months are dynamic, every cases(date of update) includes 6 months, the intervall change in every next month, so in July the first month will be 2025.August and the last months will be 2026.January. Month is a date format.

Someone22_3-1750237247930.png

 

So, what i would like to do: sort any column independent the others

 

for example:

I want to see the TOP increasing in "2025. szeptember" column independent the other columns, but i can not sort any month column, only just the Total column. So, the result what i would like to see is, if i sort descending "2025. szeptember" column, in that column see the decreasing list from the biggest value to the lowest, but in the other column i just see the changes which are not sorted.

 

For example with values:

Material  2025.július   2025.augusztus   2025.szeptember 2025.október 2025.november 2025.december

A                 100                   200                       800                     150               130                     300

B                  -50                   -100                     750                      50                 80                      900

C                 600                   120                       700                      90                 170                     40

 

Is that possible to do that? It have to be dynamic, the intervall of month change in every next month.

 

Thank you in advance!

2 REPLIES 2
mark_endicott
Super User
Super User

@Someone22  - the only way to acheive this would be to create a measure for each month, but then your matrix will not be dynamic. 

 

If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!

Rupak_bi
Impactful Individual
Impactful Individual

Hi @Someone22 ,

In matrix, you cannot sort columns. But in table, you can. What you need to do....

1. Make 6 different measure. name like month 1, month 2  ......month 6.

2. the dax will be like 

       month1 = calculate(sum(table,value), table,month = month(today())+1)

       month1 = calculate(sum(table,value), table,month = month(today())+2)...........like this

the drawback will be the month name cannot be seen. 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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