Forum Discussion
sassy0112
1 year agoFrequent Visitor
Sorting by Column not displayed when using a Field Parameter
Hi, I have a line graph that uses a field parameter to switch the x-axis between date, month-year, and week-year. I want to sort on a differnt column than I'm displaying in the graph. I know it i...
- 1 year ago
Hi sassy0112
Sort Column in the Data Model (Both the columns used in the Field Parameter)
Ensure your columns (e.g., Month-Year, Week-Year) have corresponding numeric sort columns (like MonthNumber or WeekNumber) defined in your data model.
Use Power BI’s Sort by Column feature to link the display column to the numeric sort column.
This should follow even when switiching the fields
Ritaf1983
1 year agoSuper User
Hi sassy0112
Please refer to my solution in the linked post:
https://community.fabric.microsoft.com/t5/Desktop/Sorting-custom-Period-calculated-table/m-p/4792741#M1426751
It includes PBIX with the example
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly