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
Justas4478
Post Prodigy
Post Prodigy

Changing row order in table

Hello I am trying to find a way how to change order of the rows in the table. This is the table for example. Store type.PNG

None of the sorting options give me result I need. I dont have access to the Transform Data since I use live cube connection. So is there way that maybe using measure I can specify the order that I want these rows to be in. The order that I am trying to get is: High street > shopping centre > retail park > shopping precinct > supermarket > factory outlet centre. Thank you.

7 REPLIES 7
v-jayw-msft
Community Support
Community Support

Hi @Justas4478 ,

 

Create a measure:

measure = switch(selectedvalue([type]),"High Street",1,"shopping center",2,....)

Add this measure tooltips and sort the visual by the measure.

 

Best Regeards,

Jay

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

The measure works. But I can't find a way how to add measure in the table as tooltips and not as values. Could you explain how to do it?

Hi @Justas4478 ,

 

What visual you are using?

Best Regards,

Jay

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

I am using just a table visual.

Hi @Justas4478 ,

 

My bad. Table visual doesn't have Tooltips field. You will need to add it to Values field.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Fowmy
Super User
Super User

@Justas4478 

You can add another column that will be the sort order and for this column.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Unofrtunatelly I can't do that since my data is using live connection method and I am restricted to only be able to create measures. I cant create or add columns. Is there any other method available?

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.