Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello!
I am trying to calculate the INDEX % variation of same articles across different suppliers:
SUPPLIER | ITEM_NO | Current Price | MinPrice | INDEX |
SUPPLIER A | 1 | € 49.00 | € 49.00 | 100.00% |
2 | € 34.00 | € 32.00 | 106.25% | |
SUPPLIER B | 1 | € 51.00 | € 49.00 | 104.08% |
2 | € 32.00 | € 32.00 | 100.00% | |
SUPPLIER C | 1 | € 55.00 | € 49.00 | 112.24% |
2 | € 36.00 | € 32.00 | 112.50% |
What I need to calculate is as following:
NOTE: current price column is coming from a measure that is filtering the original price which falls in a range of dates containing TODAY. This is because for 1 article I can have more than 1 value depending on dates (past and future). Therefore, I can't just do a MIN for the table colum containing the base price because the lowest price might not be the CURRENT lowest price.
I hope it's clear enough.
If more info o details are needed, please let me know.
Regards,
Alan
Solved! Go to Solution.
@alan7lp, Try the below measures,
@alan7lp, One clarification - You already have MinPrice column/measure and just need to calculate Index %?
Hello @SivaMani ,
I do not. That should be part of it. Get the minimum price of 1 particular article and "link it" to all suppliers having the same article and then from there calculate the index which will be 100 for the one with the lowest article price and then for the rest the corresponding % based on their original price vs the minimum one.
I hope that's clear!
Thanks for looking into it 🙂
@alan7lp, Try the below measures,
User | Count |
---|---|
25 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
27 | |
13 | |
13 | |
11 | |
6 |