Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Is there a way to sort a table by the results of two columns?
In the first column I have only the dates. In the second column I have the time. Now I would like to sort the table. At row one I would like to have the earliest date of the first column with the earliest result of the second column.
Example:
Thursday, 01 October, 2015 5:00:00 PM
Saturday, 03 October, 2015 3:30:00 PM
Monday, 05 October, 2015 3:00:00 PM
Thursday, 01 October, 2015 9:00:00 AM
Saturday, 03 October, 2015 4:45:00 PM
Monday, 05 October, 2015 2:00:00 PM
After Sorting:
Thursday, 01 October, 2015 9:00:00 AM
Thursday, 01 October, 2015 5:00:00 PM
Saturday, 03 October, 2015 3:30:00 PM
Saturday, 03 October, 2015 4:45:00 PM
Monday, 05 October, 2015 2:00:00 PM
Monday, 05 October, 2015 3:00:00 PM
PS: Both are separate columns.
where do you want to sort this table? under report or data tab?
In Power BI desktop, if you want to see sorted table in data view, you can either sort it in query when importing data
Or sort it in Query Editor.
If you want to sort it under report view, it can't be achieved because the table visual will always aggregate data and sort automatically ingoring the existing sorting.
Regards,
Hi @ankurmadharia,
Please do make 3rd columns which concatenates date and time and then sort results on that.
BR,
Achin
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |