Forum Discussion

sunah132's avatar
sunah132
Helper I
5 years ago

Rank and Partition

I have a list of items with pricing as value by delivery date. Because the direct query data has multiple duplicated entries per items, the row subtotal shows 10X more than what it should be. If I create a new measure with rank to bring most recent data shown to make the subtotal, what should it be? Thank you in advance.

 

This is what I thought to use rankx 

Rank =

RANKX(ALL(Hub,Item),Item Cost)