March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
My goal:
List ONLY the names of the TOP 5 sales people in my organization by using the "Sort by column" feature.
EDIT: The columns "FirstName" & "LineTotal" come from separate tables if that matters.
My steps so far:
If I add the "LineTotal" column to the table, I can see it correctly chooses the TOP 5 earners but the sorting is wrong:
The only way to sort the columns correctly is to manually click the "LineTotal" sort arrow, but I don't want to display the column in the first place, only the names.
What am I doing wrong here?
Couple things you can do
1) If you do want to use the Sort by Column option you actually need to change the default sort of the FirstName column
so FirstName should Sort By LineTotal
OR
2) Simply click the ellipsis (...) in the top right corner of the visual and select Sort by LineTotal (ZtoA)
Good Luck!
Thanks for your reply @Sean!
1. How do I do this? I have currently chosen the tile, then I've chosen the "LineTotal" from the right side pane and then clicked on the "Sort by Column" button. It shows "LineTotal" shown as the sorting method, but it still sorts incorrectly.
2. I can't use this method since I don't actually want to list the sales values. I just added them to the screenshot to prove that the sorting does not work.
Another screenshot:
How are the two tables related?
1) Create a FirstName Rank Column in the Table containing FirstName
This Column should Rank DESC based on the Line Total from the other Table
2) Sort FirstName by this new Column
3) then Filter TOPN - show Bottom 5 - by value - sum of FirstName Rank
Hope this helps!
They're related through my data model. The relation works properly in my report, there should not be an issue.
I think what's happening here is that I'm essentially using the sorting correctly, but PBI doesn't understand how to sort the sums correctly. I haven't tried creating a proper TOP N style column for this I did create a simple manual type of rank where I gave values to the employees from "1 to 5". Sorting that worked as expected.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
91 | |
90 | |
83 | |
73 | |
49 |
User | Count |
---|---|
167 | |
149 | |
98 | |
73 | |
57 |