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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JohnnyK
Advocate II
Advocate II

To have data sorted the same, in Data view, as it's in Editor

A data structure as below.

 

111.png

 

(the .pbix file is here: https://we.tl/t-l4vagf7oXc )

 

I need the data in Data view to be sorted by “Project” and “Attend Date” (first date then time), to suit some formula.

 

Steps taken in Advanced Editor:

(the column “Attend Date” is texts)

  1. Duplicated the column “Attend Date”, and split it by delimiters, to create 2 new columns – “Attend Date (mm/dd/e)” and “Attend Date (time)”.
  2. The data was sorted by 1. “Project”, 2. “Attend Date (mm/dd/e)”, 3. “Attend Date (time)”.
  3. Then, an index column starting from 1, was added to the data.

 

In Advanced Editor, it looks like the data is sorted by the Index column (1,2,3,4,5…) which was by “Project” and “Attend Date” (first date then time).

 

When Closed and Applied, however it is not the same sorting in Data view.

 

As there are some formula requires the data sorted. How can I sort the data in Data view, by “Project” and “Attend Date” (first date then time). Thank you.

 

 

8-26-2021 12-31-38 PM.png

 

 

 

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @JohnnyK

 

You can sort by index column as:

vxulinmstf_0-1630470407249.png

When you drag the fields into visuals, you can set as:

vxulinmstf_2-1630470604517.png

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

View solution in original post

2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @JohnnyK

 

You can sort by index column as:

vxulinmstf_0-1630470407249.png

When you drag the fields into visuals, you can set as:

vxulinmstf_2-1630470604517.png

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

lbendlin
Super User
Super User

Neither of these are important. The only important place is the Power BI visual. In a table visual you can sort multiple columns by first sorting on the first column and then shift-click the second column.

 

How To Sort A Table Using Multiple Columns In Power BI (c-sharpcorner.com)

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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