Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
holodan95
Helper II
Helper II

Column values in matrix, if the sum of the column is greater than a related number

Hi,

 

I would like to ask for help regarding a project I have.

 

Base data:

To order from our supplier, we have to make a minimum order of 1000 USD.

I calculate our order needs with the following formula:
Minimum stock - (Current stock - (Average sales*Delivery time from supplier))

Example:
Minimum stock = 150

Stock = 100 pc

Average sale/day = 5

Delivery time in days = 10


Calculation for delivery cycles:
First delivery cycle: 150-(100-(5*10)) =
Second delivery cycle: 150-(100-(5*10*2))

.. etc

Our corrected stock on 'T' day is 50, so I have to order 100 pc of supplies, but if it is not enough in value, then

I jump to the next colum (cycle)

 

Example table:

Item nameMinimum stockStockAverage salesDelivery timeCycle1 (order pc.)Cycle2 (order pc.)Cycle1 valueCycle2 value
XY1150100510100150250usd500usd
XY2150100510100150250usd500usd

 

I need to compare my TOTAL order values with the minimum of what our supplier requests (1000 USD). To do this, I sum the columns that contain the order values seperately and check if it is >= to 1000 USD. If so, then I want to have those order pc values that are in regards with the USD values. In this case, Cycle 2.


Result:

Item nameOrder PCOrder USD
XY1150500
XY2150500

 

I have all the colums calculated but I struggle with the second part.

 

Please help me if you have a solution for this.

1 REPLY 1
holodan95
Helper II
Helper II

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.