Forum Discussion
Tableau Sort Trick in Power BI
- 2 months ago
jjustjjo Change datatype of "SortBy" Measure to Whole Number. Apply Visual sort using "SortBy" Measure Ascending, but the measure will override this by dynamic sorting logic.
Also, note that you are creating the SiteNameSort, SubjectIDSort and VisitDateSort are calculated columns with data type whole number.
Check below Sample snapshots for reference -
Visit Date is sorting desc order -
Subject ID is sorting asc order -
Default (Site Name) is sorting asc order -
To Unhide the column - Remove the hidden column from the visual and re-add if you are unable to resize the width to make it visible
💡 Helpful? Give a Kudos 👍 — keep the community growing
✅ Solved your issue? Mark as Solution ✔️ — help others find it faster
Best regards,
Rupasree Achari | BI & Fabric Analytics Engineer
Power BI has 2 different functions that might be applicable here. Firstly you can define a sort order column for any column in your data table. So your Text values could be sorted by another field that is a number.
Secondly, sort order of a table can be changed by the user clicking the header of the table itself. You don't need a drop down menu for a user to change the order of a table.