Forum Discussion
How do I optimize a supplier portfolio within the US?
- Anonymous2 years ago
Hi jaduncan0515 ,
(1) We can create measures.
Min_price = CALCULATE(MIN('Table'[Price]),FILTER(ALLSELECTED('Table'),'Table'[State]=MAX('Table'[State])))Min_outourced = CALCULATE(MIN('Table'[Outsourced %]),FILTER(ALLSELECTED('Table'),'Table'[State]=MAX('Table'[State])))Vendor_Name = CALCULATE(MAX('Table'[Vendor Name]),FILTER(ALLSELECTED('Table'),[State]=MAX('Table'[State]) && [Price]=[Min_price] && [Outsourced %]=[Min_outourced]))(2) We can create a table.
Table 2 = SUMMARIZE(ALLSELECTED('Table'),[State],"min price",[Min_price],"min outourced",[Min_outourced],"vendor name",[Vendor_Name])(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you. That is close. What I failed to mention is that I don't need the vendor to cover the whole US, I need an optimized list containing the fewest number vendors that will cover the US combined at with the lowest price and outsourced %.
The forum will not allow me to upload files, so I've put a link to a google sheet below of some sample data.
Hi jaduncan0515 ,
(1) We can create measures.
Min_price = CALCULATE(MIN('Table'[Price]),FILTER(ALLSELECTED('Table'),'Table'[State]=MAX('Table'[State])))Min_outourced = CALCULATE(MIN('Table'[Outsourced %]),FILTER(ALLSELECTED('Table'),'Table'[State]=MAX('Table'[State])))Vendor_Name = CALCULATE(MAX('Table'[Vendor Name]),FILTER(ALLSELECTED('Table'),[State]=MAX('Table'[State]) && [Price]=[Min_price] && [Outsourced %]=[Min_outourced]))
(2) We can create a table.
Table 2 = SUMMARIZE(ALLSELECTED('Table'),[State],"min price",[Min_price],"min outourced",[Min_outourced],"vendor name",[Vendor_Name])
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.