The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have just added a Field Parameter to my report to allow a visual to switch between Date, Week and Month with Week and Month as Calculated Columns in a table. It works great with the slicer changing the X-Axis based on the selection but each time it changes the visual defaults to sorting by the Y-Azis value (in this case a count).
When I set the sort order manually on the visual it recognises the selected field as the X-Axis and sorts but then as soon as the parameter is changed this is lost as you switch backwards and forwards.
I have tried creating a linked table and defining the sort order to be used in the parameter but have not had any luck.
Any ideas or is this due to the pass through of the field parameter not being able to store your sort changes when a new field has replaced the previous?
Solved! Go to Solution.
Step by step solution:
Create a New Measure:
Select Your Visual:
Access the Fields Pane:
Add the Blank Measure to the Tooltip:
Note: The Tooltip section is usually at the bottom of the Fields pane. If you don’t see the Tooltip section, it’s possible that the visual you’re using doesn’t support tooltips, in which case this method may not be applicable.
I think the developers of the Field Parameters feature have not considered your scenario.
One thing you can do is explicitly "sort a column by another column" for the field parameters you included. NOTE: This currently assumes ASCending sort which is not optimal when you expect new values in your column. The better default would be DESC.
Alternatively you can raise it as an issue/feature request.