The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi there, I would like to rank a dataset based on multiple paramenters. From:
Product | Salesperson | Sales |
Product A | Alan | 10 |
Product B | Bob | 20 |
Product B | Alan | 22 |
Product A | Charlie | 11 |
to
Product | Salesperson | Sales | Rank |
Product A | Alan | 10 | 1 |
Product A | Charlie | 11 | 2 |
Product B | Bob | 20 | 1 |
Product B | Alan | 22 | 2 |
Any ideas how to do this? Tried looking at RankX but it seems to be only for 1 paramenter only. Thanks!
Solved! Go to Solution.
A most common question about sorting in ascending order
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Please feel free to utilize either the "Rank" measure provided below or the "ThxAlot" measure, both of which yield accurate results.
A most common question about sorting in ascending order
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Hi there,
when i tried your solution with sample data , my rank is all '1'. Could you kindly advise?
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |