Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I hope someone can help me to get it working in Power Query.
I have two tables of items with old and new prices depended on different quantities.
The number of given combination “From Qty”<=>”Price Qty” might vary both for different items in the same table and for the same items in the different tables.
I have also one more table with Annual_DMD and Order_Qty for the same items.
Wished result is table with qty and prices closest to Order_qty to evaluate price changes.
On each item level should:
4. Culculate the % of price change: “% price”= (“New price volume” - “Old price volume”)/ (“Old price volume”)
Thanks a lot and best regards
Solved! Go to Solution.
The techniques described in these articles should get you started:
https://www.powerquery.training/portfolio/vlookup-true-in-power-query/
http://ozdusoleil.com/2018/03/01/vlookup-true-equivalent-in-power-query-with-dynamic-tiers/
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
This sounds like a good one for @ImkeF...
The techniques described in these articles should get you started:
https://www.powerquery.training/portfolio/vlookup-true-in-power-query/
http://ozdusoleil.com/2018/03/01/vlookup-true-equivalent-in-power-query-with-dynamic-tiers/
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Dear Imke,
thank you for sharing this tips. It looks like a great solution, but unfortunataly it doesn't help my problem due I have need to go along the row to find the right value. To do transforming to the list is not good idea because the each item has several values and my project can consist of several thousand of items.
BR//Larissa
Hi Imke, it was quite complecated to come to the desired result with your suggestion, but I succed to the end. If there is no other more easy way to solve this I accept it as solution.
BR//Larissa
Let's assume it's 100 000 items and each item has five columns, this doesn't come out to more than 500 000 rows which is nothing in a PBI model so you should be afraid to unpivot the data if that makes working with the data simpler. Because it's a column store the number of rows has little importance, what matters is the cardinality of columns.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |