Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Request your guidance to solve this issue;
Below screenshot shows the salesman wise sales for the month of August, 2022. I would like to grade them as "A", "B","C" based on the criteria like this;
Grade A = Top 4 ( Waseem/Jaffer / Ammar / Khurram )
Grade B = Top 5 to 8 ( Fawad / Jaber / Shakeel / Shabbir )
Grade C = below 9 ( Balance all salesman )
Kindly advise
regards,
dsmitha
Solved! Go to Solution.
Hi @dsmitha ,
According to your description, here is my solution.
Create a column to rank the “Count of SIM”.
rank = RANKX ( 'Table', 'Table'[Count of SIM],, DESC )
Create a measure to assign Grade A, B, C according to the rank.
Grade = SWITCH ( TRUE (), MAX ( 'Table'[rank] ) <= 4, "A", MAX ( 'Table'[rank] ) >= 5 && MAX ( 'Table'[rank] ) <= 8, "B", "C" )
Final output:
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dsmitha ,
According to your description, here is my solution.
Create a column to rank the “Count of SIM”.
rank = RANKX ( 'Table', 'Table'[Count of SIM],, DESC )
Create a measure to assign Grade A, B, C according to the rank.
Grade = SWITCH ( TRUE (), MAX ( 'Table'[rank] ) <= 4, "A", MAX ( 'Table'[rank] ) >= 5 && MAX ( 'Table'[rank] ) <= 8, "B", "C" )
Final output:
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi v-xiaosun-msft,
thanks a lot, excellent solution, exactly what i was looking for
double kudoz !
regards,
dsmitha
@dsmitha Use RANKX to create a ranking. Create another measure that uses the ranking with a SWITCH(TRUE()...) statement to return your A, B, C.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
104 | |
77 | |
67 | |
63 |
User | Count |
---|---|
144 | |
107 | |
105 | |
82 | |
69 |