Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear All,
I have a price list from 4 suppliers.
I want to get the minimum unit price and respective supplier name and the second minimum unit price and respective supplier name as below.
Solved! Go to Solution.
hello !
you should create calculation column
in visual table you should in Filter Panel apply filter RanlColumn = 1 for get Lowest Price
in visual table you should in Filter Panel apply filter RanlColumn = 2 for get Second Price
if I answered at your question please mark topic as resolved 🙂
Unpivot the table in the power query, and then you can create rank for price.
You will have two columns, rename them as Supplier and price
Then create a rank like this
Rank = rankx(filter(Table, [supplier] =earlier([supplier]) && [Product Name] =earlier([Product Name]) ) , [Price],,asc,dense)
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
hello !
you should create calculation column
in visual table you should in Filter Panel apply filter RanlColumn = 1 for get Lowest Price
in visual table you should in Filter Panel apply filter RanlColumn = 2 for get Second Price
if I answered at your question please mark topic as resolved 🙂
how to avoid zero values columns while ranking?
Some results are wrong. Barcode 1889648 lowest must be 68, and second lowest 77.40
i corrected it, caz Data Type was text. Now its okey. Thank you.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 29 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |