Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext 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
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.
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
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.
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!!
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.
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |