Forum Discussion
Hidde
Helper I
8 years agoCount price position in PowerBI
Hi, I am struggling with finding a solution for this: I have a lot of prices per product, so the data looks like this: Product - client - price - Price Position Product 1 - Client 1 - €2 - 1...
- 8 years ago
Hi Hidde,
To achieve your requirement, you can try this calculated column:
Price Ranking = RANKX ( FILTER ( 'Rank', 'Rank'[Product] = EARLIER ( 'Rank'[Product] ) ), 'Rank'[Price], , ASC )Thanks,
Xi Jin.
v-xjiin-msft
Solution Sage
8 years agoHi Hidde,
To achieve your requirement, you can try this calculated column:
Price Ranking =
RANKX (
FILTER ( 'Rank', 'Rank'[Product] = EARLIER ( 'Rank'[Product] ) ),
'Rank'[Price],
,
ASC
)
Thanks,
Xi Jin.
Hidde
Helper I
8 years agoThis works perfectly, thanks! What does the EARLIER function do in this context?