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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dlmsbi
Frequent Visitor

sort by coloumn

Hi All,

I have a question about the next problem:

I am try to sort the rows with different coloumn.The problem is i have same word in the coloumn and two different number in the other coloumn.
Normally i know if i try to sort i'm going to get fault message.
Because is as i know it impossible.

 

 

 

Képkivágás.PNG

The second coloumn sort by third is no problem.

The problem is the last two coloumn. Because example szint2= X  szint2_no= 2 or 1

Somebody know a different way?

 

Thanks.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dlmsbi , You need to have a column with only one value for szint2

create a new column and use that

Sort col = minx(filter(Table, [szint2] = earlier([szint2])),szint2_no)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
dlmsbi
Frequent Visitor

The result is not bad but not like what i need. (Thanks 🙂)

I need leave alone the [szint2_no] and use the short by coloumn function on [szint2]

 

dlmsbi_1-1623850254174.png

 

For full pictures: The problem starting a path hierarchie and after i get back the names with lookupvalue and i have a coloumn with order_no. There i have 2 and 1. This is the reason why i can't ordering the "Negyedik szint"

dlmsbi_2-1623850720971.png

 

 

 

dlmsbi
Frequent Visitor

Thanks I'll try

 

amitchandak
Super User
Super User

@dlmsbi , You need to have a column with only one value for szint2

create a new column and use that

Sort col = minx(filter(Table, [szint2] = earlier([szint2])),szint2_no)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.