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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors