Minimum value from specific column

Minimum value from specific column

milan_durackaDVYZD
Contributor Contributor
29 Views
3 Replies
Message 1 of 4

Minimum value from specific column

milan_durackaDVYZD
Contributor
Contributor

[ FlexSim 20.2.3 ]

Hello, I am still beginner in Flexim a I´d like to ask You for help. I need to use “Event-Triggered Source” -> “OnContentChange”-> ”Increase to exact value” -> define this exact value (let´s name it “X”) as distinction between variable Y (value defined in the table) and minimum from values of specific column in the table. Something like this: X = Y - min(Col 3). This “X” should be the parameter “quantity” in “event-triggered source”. I don´t know how to get this result in custom code. Could You help me please?

Thanks a lot!

0 Likes
Accepted solutions (1)
30 Views
3 Replies
Replies (3)
Message 2 of 4

krzysztof_jurczykF5GXD
Enthusiast
Enthusiast
Accepted solution

Hello. Try to use SQL query as I have proposed in the attached model.MilanDurackaU3.fsm

0 Likes
Message 3 of 4

milan_durackaDVYZD
Contributor
Contributor

Thank You very much, it works!

0 Likes
Message 4 of 4

Ben_WilsonADSK
Community Manager
Community Manager

Hi @Milan U3, was Krzysztof J's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes