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
TanFouc87
Frequent Visitor

Sort a column by another column principle

Hi everyone, I have a table like this 

TanFouc87_0-1714733331439.png

I would to visual a table with Parent_Index and Index as Column Label like this 

TanFouc87_1-1714733444424.png

I want to sort weekday in order so I create the Order_id columns, but I can not sort Index Column by  Order_id columns

TanFouc87_2-1714733531158.png

I just do not really understand why I am wrong and how to done it. 

I will be appreciated for your help. Thanks in advance!

 

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Add a composite key (Index+parent index) and change the order_id column to consecutive numbers across that composite key as needed.

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Add a composite key (Index+parent index) and change the order_id column to consecutive numbers across that composite key as needed.

But when it comes for visualizing, I still want to use column "Index" and "Parent_Index" seperately for visual's column labels. Creating composite key and sorting it by distinct consecutive order_id seem not really help. 

You can still do that. Try in out.

It worked!! So sorry for late response.
Thank you very much.

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!

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.

Top Solution Authors