Forum Discussion
Rankx an Aggregated Fieldin a calculated column while ignoring others.
You may try below calculated column:
Column =
RANKX (
FILTER (
salesdashboard_pos,
salesdashboard_pos[pos_date] = EARLIER ( salesdashboard_pos[pos_date] )
),
CALCULATE (
SUM ( salesdashboard_pos[Total POS $] ),
ALLEXCEPT (
salesdashboard_pos,
salesdashboard_pos[pos_end_customer_name],
salesdashboard_pos[pos_date]
)
),
,
DESC
)
Regards,
Hello v-cherch-msft and thank you for the input. The calculation that you provided gets us very close to the desired solution. What's happening is that we are ranking with a Skip by sum(Total POS $). If we change to Dense, that will solve the problem towards the top end of the list, where sum(Total POS $) is unique for each customer. We run into a problem towards the bottom of the order where many distinct customers share the same value of sum(Total POS $). I would like to see a ranking for distinct customers...which is where a Skip would make sense, but that doesn't work at the top of the list (Ex. Zyteq Technologies should have a rank of 3).
I kept at it with this...
and then I ranked that Dense...
- v-cherch-msft7 years ago
Microsoft Employee
Could you share some simplified sample data which could reproduce your scenario and your desired output?
Regards,