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 All,
I have following Dataset. By using Sales & Unit measure i want to create Rank the customer
Date | Company | Product | Sales | Unit |
12/1/2019 | C1 | P1 | 10 | 2 |
12/2/2019 | C1 | P2 | 10 | 4 |
12/3/2019 | C1 | P1 | 10 | 6 |
12/4/2019 | C2 | P2 | 10 | 2 |
12/1/2019 | C2 | P1 | 10 | 2 |
12/2/2019 | C2 | P2 | 10 | 2 |
12/3/2019 | C3 | P1 | 5 | 3 |
12/4/2019 | C3 | P2 | 5 | 3 |
12/1/2019 | C4 | P1 | 5 | 3 |
12/2/2019 | C4 | P2 | 5 | 3 |
12/3/2019 | C5 | P1 | 7 | 2 |
12/4/2019 | C5 | P2 | 8 | 5 |
primarily i want to rank by sales. If two customer has same sales value we need to consider Unit Value
If Sales and Unit is same i want to rank Randomly (Same Value has different Rank )
Solved! Go to Solution.
Hi,
I have been able to get the following:
Revenue = SUM(Data[Sales])
Units = SUM(Data[Unit])
Revenue and units = [Revenue]+([Units]/1000)
Rank = RANKX(ALL(Data[Company]),[Revenue and units])
However this returns the same rank where sales and units are the same.
Hi,
I have been able to get the following:
Revenue = SUM(Data[Sales])
Units = SUM(Data[Unit])
Revenue and units = [Revenue]+([Units]/1000)
Rank = RANKX(ALL(Data[Company]),[Revenue and units])
However this returns the same rank where sales and units are the same.
Hi @Anonymous ,
look at this.
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
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 |
---|---|
111 | |
94 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |