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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors