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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Sneha_525
Regular Visitor

Power BI Field parameter - Order of columns in a table based on slicer display order

Hi All,


In my report, I have created 2 field parameters defined as dimension and measures. Based on slicer selection the fields are displayed in the table.
Is there a way to define the table column order to sync with the slicer order?
Eg: Below is the current scenario, the table is displaying the columns based on the order of selection.
In the Dimensions slicer, I first selected Agent and then Location
In the Measures slicer, I selected sum, max, count, and min.

 

Sneha_525_0-1683637859861.png


Instead, I want to display the columns based on the slicer display order
Example: Irrespective of selection order the output should display as below.
Desired output: Location, Agent, Min, Max, Sum, Count

 

Thanks,

Sneha

4 REPLIES 4
TomWasTaken
New Member

Interestingly the desired behaviour works in Power BI Desktop when you're developing the report, but when published (and users are using it online) it changes to adding columns onto the end as and when they're selected by the user...

 

So it doesn't seem like an issue with PowerBI itself unable to do it, just the behaviour of the online version.

Kishore_KVN
Solution Sage
Solution Sage

Hi @Sneha_525 ,

 

Bring that sorting column into the actual table where you have created calculation parameter and then in that table you have to sort with the help of this reference. You can use 'Related' by creating relationship or else you can also use 'LookUpValue' to get this table in the parameters table. 

 

@Sneha_525 If this post helps, then please consider accepting it as the solution to help other members find it more quickly.THANK YOU!!

Kishore_KVN
Solution Sage
Solution Sage

If I understood your question correctly, we can achieve your requirement in two ways:
1. Sort the columns in the matrix/table visual in the fields parameter

2. Create a sorting column and give order referece for those columns as per your requirement. Then sort the columns with that sorting column reference.

Hi Kishore,
Thanks for the response!

I tried both approaches earlier and was unable to achieve my requirement.

1. Sort the columns in the matrix/table visual in the fields parameter

For the 1st option, the table is showing sort by for only the fields that are selected in the slicers (in my example: Agent, location, sum, max, count, and min)
Sort by option is sorting based on specific column values, not the column order.Sneha_525_1-1683642088668.png

2. Create a sorting column and give order references for those columns as per your requirement. Then sort the columns with that sorting column reference.

I created a table based on the sorting reference as below snapshot. I am unable to specify order based on “Sort order” column on the table visual, as Sort by column is only showing the selected slicer columns.

 

Sneha_525_2-1683642132007.png
Thanks,
Sneha

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.