The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a PBI Paginated Report with a parameter list. The data source is a dataset model, so no SQL with an order by statement in this scenario is used. The list is sorted in alphabetical order, but I need it sorted in another order, i.e, by another field defined in the model. Is there a way to get the parameter dropdown values to be sorted by this other field that is not to be displayed in the dropdown?
If your end user will remain in Power BI app, could you use an "interactive sort" button on the column? (assuming the thing you want to sort by is being displayed).
My goal is to change how it is sorted when delivered by subscription to my end user (in Excel). so, I'm still looking for a solution to this. perhaps the parameter can be in the Dax.. haven't tried yet.
Is there a solution yet to this?
Hello @ldwf,
Here are two possible approaches:
Modify the dataset model: In the dataset model, you can adjust the sorting of the underlying table or query by the desired field. If the parameter dropdown is based on a dataset table, you can set the sorting order of that table by the desired field. Save the changes to the dataset and refresh the report to reflect the new sorting order in the parameter dropdown.
Modify the query: If your dataset uses a query to retrieve data, you can modify the query to include an ORDER BY clause that sorts the data by the desired field.
SELECT Field1, Field2
FROM YourTable
ORDER BY AnotherField
Let me know if you might require any further assistance.
Hi @Sahir_Maharaj . I did modify the model to sort by the other field. It does sort the fields but when used in a parameter, by default the parameter still sorts by the original field, not by the other field. I can instead use a SQL statement in my Paginated Report to get around this problem, but the intent is to use our PBI model (i.e, the published dataset) instead of SQL queries. So instead of using SQL, I'm looking for a way to sort the parameter values in the dropdown another way
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
80 | |
80 | |
48 | |
40 |
User | Count |
---|---|
150 | |
110 | |
64 | |
64 | |
58 |