Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All, I meet a problem, the data of column A in excel has the sort but the sort is not by ASC or DESC, is set by user as business requierement, e.g., the sort of the column A is as below:
Column A |
One |
Two |
Three |
But, after we get the excel and import to Power BI desktop, the data sort will be changed, and can only sort as ASC or as DESC:
So my question is can we make the sort be same with the original data? Thanks
Solved! Go to Solution.
You need a second column that defines the correct sort. Then you can set your column to have a Sort By of your second column.
Hi @Anonymous ,
Normally a workaround for this is to add a new index column next to the Column A, then you can sort by this new index column.
Please try to use below method:
Aiolos Zhao
You can choose sort column of your choice. Or refer to my Direct Query blog in my signature
@amitchandak in this way, then need to display the sorted column, too. So for the case that we need to add an index column to do the sort, then seems not perfect to display the index column out in a table or Matrix.
Hi @Anonymous ,
Actually you don't need to show the index column in your table, after you created the index column,
1. select the column that you want to sort in the front-end
2.click the button in below screenshot
3.choose the index column that you created
then you will found that you don't need to show the index column in your table, and the table will sort by the index column
Please try.
Aiolos Zhao
Sort column takes care internally. You do not have to anything other than sort on your main column.
This is what we do
Month Year = format(Date,"MMM-YYYY")
Month year Sort = format(Date,"YYYYMM") // We make this as sort column of the month year
In visual we go and sort on Month Year. But power bi sort it on Month year Sort
It works, thank you very much!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
65 | |
45 | |
39 | |
33 |
User | Count |
---|---|
164 | |
111 | |
61 | |
53 | |
38 |