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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
TanFouc87
Regular 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors