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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply

Ordering matrix columns in live query connection setup

Hi everyone,

I'm recently struggling with a customer request: he asked me to order the following matrix

gabrielefugazzi_0-1598430432988.png

re-ordering the column year values (2019, 2020)  in descending order (2020, 2019).

It seems that live connections does not enable the delopers to use the ordering columns functionalities.

How could I order matrix columns if I'm working on a live query connection?

 

 

 

2 ACCEPTED SOLUTIONS

Hi @gabrielefugazzi 

 

You need to add the index column in SSAS to make the table similar as below:

09.PNG

Then click the Year column to sort by column1 (But note that you need find the option similar in SSAS)

00.PNG

I found official references could probably provide you more hints:

https://docs.microsoft.com/en-us/analysis-services/tabular-models/add-columns-to-a-table-ssas-tabula...

 

https://docs.microsoft.com/en-us/analysis-services/tabular-models/sort-data-in-a-table-ssas-tabular?...

Community Support Team _ Dina Ye
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

I think field "Ordina per colonna" is the same field as "Sort by Other Column".

You can use this property to sort values by other fields

 

 

SortBy-TabularModel.png







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@gabrielefugazzi , the live connection you have set an order by column in SSAS.

This how we do. We create a desc rank on year and mark that as sort column. That will sort recent year as first

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
FarhanAhmed
Community Champion
Community Champion

Do it at source Level ...

I believe your Live connection is of SSAS cube.

you need to create a Sort Column in your data, do changes accordingly in Dimension Field property.

 

SortByCube-1.png

 

Change the orderby property to Key

SortByCube-2.png







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Thank you for your answer. On the back I have a tabular model. Since it's my first time working with this tools have you the experience to tell me how to do it in tabular?

My fields proprierties in visual studio are like this

gabrielefugazzi_0-1598512854966.png

Thank you very much. 

 

 

I think field "Ordina per colonna" is the same field as "Sort by Other Column".

You can use this property to sort values by other fields

 

 

SortBy-TabularModel.png







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Hi @gabrielefugazzi 

 

You need to add the index column in SSAS to make the table similar as below:

09.PNG

Then click the Year column to sort by column1 (But note that you need find the option similar in SSAS)

00.PNG

I found official references could probably provide you more hints:

https://docs.microsoft.com/en-us/analysis-services/tabular-models/add-columns-to-a-table-ssas-tabula...

 

https://docs.microsoft.com/en-us/analysis-services/tabular-models/sort-data-in-a-table-ssas-tabular?...

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.