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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors