The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi can anybody help how to calculate Price Index of our brand and for the competition brands?
Hi @Sunilrane ,
If you want to create a rank for the price, you can try rankx function as amitchandak mentioned before. If this does not match your requirement, please share a sample with us and you can show us a screenshot with the result you want. This will make us easier to find the solution.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Sunilrane , Not very clear, can you explain
new column
rank = rankx(filter(Table,[brand] = earlier([brand]) , [price],,asc,dense)
or
rank = rankx(filter(Table,[brand] = earlier([brand]) , [price],,desc,dense)
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |