Forum Discussion
Yet another Sort by another Column error.
- 2 years ago
I had to refresh the data and then quit Power BI Desktop and reload it up again and then it allowed me. It must have been a caching issue.
The issue seems to be that the sorting you're performing is somehow conflicting with the order of the days. On the unique values table, everything works fine (see the attached image).
Therefore, what you need to do is sort your small table and link it to the large table using a one-to-many relationship. In the visualizations, you'll use the days from the small table. This will work.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
- Thomas_MedOne2 years agoHelper III
My table itself of course has lots of other columns and there are lots of Mondays and Tuesdays, etc. and the "DayNum" column is in the same table. So I don't have a small table at all. I guess I could add one but it seems overkill just to sort one column.
- Ritaf19832 years agoSuper User
Small table with 9 rows is very far from overkilling. It will solve the issue , and this is how pbi's engine like to work 🤓
- Thomas_MedOne2 years agoHelper III
No, but just creating a table to sort another table, that just seems unnecessary. perhaps in some instances it is not. The solution, ultimately, was to refresh the data, quit Power BI Desktop and load it back up again and it allowed me to sort. It must have been a caching issue from a previous attempt when I didn't have unique values.
Thanks for looking into it and even teaching something that I didn't know was a thing. I am pretty new at all this.