I have a query about sorting data in a particular month in line chart. Line chart is showing a series of data, example as below. At the moment, my top 5 item groups are sorted by total value of item groups. What if at each month, I need to sort the data in descending order for that particular month, how do I do it in filter or DAX? It’s easy in excel by just sorting a particular column, but I don’t know how to do it in Power BI. As I’m sorting item group orders at each month, which means my top 5 item groups will be different as at each month.
Hi @carolwu0919 ,
For sorting you can go on 3 dots … then Sort Axis and pick the sort that you want - one Example :
@carolwu0919 Please check url might be you will get something helpful
Hi @carolwu0919.
As I believe, your expected outcome is related with ranking items by specific value separately for each data period vs showing top 5 items across all selected items. But this is my guess.
Would you mind providing a sample excel screenshot (i.e. with a sample chart that shows which outcome do you expect) ?
Best regards
Hello @carolwu0919
Did the responses above help solve your query?
If not, can you let us know where you’re stuck and what additional assistance you need?
If it did, please mark the answer as the SOLUTION by clicking the three dots beside Reply and then tick the check box beside SOLUTION
Thank you
Hi @Gustaw , thanks for coming back to me. I guess you got what I mean.
Below is my sample data, and I have also attached the PBI file.
At the moment I can only filter the top 3 items by total value, my question is, let’s say in Mar 23, I would like my top 3 to be sorted by value of that particular month, so my top 3 will be item 1, 2 4 instead of top 3 of total value as item 3, 4, 1. So basically top 3 as at each month could be different from previous month as well as different from top 3 in total value.
Hope I explained.
Sorting problem.pbix (84.2 KB)
Bumping this post for more visibility from our experts and users.
Hi @xshields , thanks for coming back to me, but my sorting question is not just simple as sorting any particular axis in general, I actually need the sorting at a point of each time slot. I have given my example in a post below, hope someone can assist me.
Bumping this post for more visibility from our experts and users.
Hi @carolwu0919
We noticed that your inquiry was left unsolved for quite some time now.
Looks like your inquiry was out of the experts’ and users’ bounds.
If you were sure you provided all pertinent context to your concerns and read how to use the forum more effectively and still find your question unanswered, your membership also comes with relevant resources that may help you with your Power BI education, so we advise that you check these resources as well.
While our users and experts do as much as reasonable to help you with your inquiries, not all concerns can be attended to especially if there are some learnings to be done. Thank you!