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
BerkLee
Frequent Visitor

Order of columns breaks when using Field Parameters

I have a table that uses Field Parameters tied to a checkbox slicer so clients can select the columns they want to see.  But when they try to select columns out of order, the resulting table doesn't correct itself.  Is there a way to enforce the sorting properly?

 

BerkLee_2-1659611364199.png

BerkLee_3-1659611421935.png

 

I've already tried "Sorting by a Column" but all it seems to do is sort the order of the choices on the slicer and not the table itself.  Is there something I'm doing wrong?

 

1 ACCEPTED SOLUTION
Duia
Resolver II
Resolver II

Hi  @BerkLee ,

I created some data:

Duia_0-1660120472502.png

Whether Sort ascending is selected in your Visual, it will be sorted according to the order of the slicer selection.

Duia_1-1660120472504.png

You can cancel it or recreate the Viusal without Sort ascending, and then sort by default.

Duia_2-1660120472506.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

6 REPLIES 6
Duia
Resolver II
Resolver II

Hi  @BerkLee ,

I created some data:

Duia_0-1660120472502.png

Whether Sort ascending is selected in your Visual, it will be sorted according to the order of the slicer selection.

Duia_1-1660120472504.png

You can cancel it or recreate the Viusal without Sort ascending, and then sort by default.

Duia_2-1660120472506.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

SpartaBI
Community Champion
Community Champion

@BerkLee it depends on what you choose 1st in the slicer. The order by you choose will sort them from left to right.


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Showcase Report – Contoso By SpartaBI

Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png


Yes but is there a way to retain the default sorting order of a to l no matter what?

Hi There,

old post, but in case anyone else comes across.  I have found a solution to this problem accidentally (and the solution to your problem IS my problem.  If you add another column to the field parameter table using the same field names as the field parameter's first columns (or other names if you want, which is my case), set the sort by for this column to the sort column of the field parameter, and point the field parameter slicer, you visualization will enforce the sort order.  Or at least that's what it is doing for me even though I don't want it to!

This was super helpful - thanks!

SpartaBI
Community Champion
Community Champion

@BerkLee not sure.
If you won't touch the slicer then you'll have the default sorting. But once you touch it... I don't think you can with one slicer, but not 100% sure.
If you start by selecting all, and then uncheck I think it will retain the order you want. 
WDYT?

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.