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
Anonymous
Not applicable

Sorting by Particular Column in a hierarchy

Hi,

I have this Actual Revenue & Expenses Matrix table.

I want the Hierarchy to be in this Order (Image !), but I want the GL/Source Summary Account Title fiels to be sorted in particular Order.

 

Image 1.PNGImage 2.PNG

 

 

 

 

 

 

 

 

 

 

 

I tried creating a conditional column with GL/Source Account Summary ID & sorted the GL/Source title column by the ID column.

But it doesn't work.

 

I will really appreciate any help on this.

Thanks!!

 

 

1 ACCEPTED SOLUTION

is your sort by column of numerical type? it should be numerical

View solution in original post

10 REPLIES 10
v-lili6-msft
Community Support
Community Support

HI, @Anonymous 

Add an index column for GL/Source Summary Account Title in Edit Queries.

For example:

14.JPG

 

Then set sort by column

12.JPG13.JPG

Result:

15.JPG

Best Regards,

Lin

 

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-lili6-msft ,

 

Thank you for your reply.

I did the same way...but it still doesn't work.

Don't know what I am missing ....

GL 2.PNGGL 3.PNG

GL1.PNG

Anonymous
Not applicable

Try sort the column in the database itself, Did you try that ?

 

seems like you did everything right, but you might probably forgot to do following:

 

on the visual itself, => choose more options => choose Sorty By => choose GL/Source Summary Account Title.

 

Below is the example. Once you do it, it should resort it in your desired order.

 

Capture.PNG

Anonymous
Not applicable

I did that too...:(

Thank you @bogomda !!

@Anonymous can you confirm and make sure you sorted your ("GL/Source SUmmary Account Title" by "Account SUmmary Id" in model tab using "sort by column"

 

Can you send the screen shot if you did it?

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi @parry2k ...Thank you!!

Its solved..I had to set the Gl/Source ID as whole number.

@Anonymous  that make sense. glad to hear. cheers



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

is your sort by column of numerical type? it should be numerical

Anonymous
Not applicable

OMG....You are Awesome!! @bogomda 

It worked!! 🙂 🙂

 

Thank you so 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 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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