question

Milan U3 avatar image
0 Likes"
Milan U3 asked Ben Wilson commented

Minimum value from specific column

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!

FlexSim 20.2.3
flexsim 20.2.3event-triggered source
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

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 0 ·

1 Answer

·
Krzysztof J avatar image
0 Likes"
Krzysztof J answered Milan U3 commented

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


milandurackau3.fsm (40.8 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Milan U3 avatar image Milan U3 commented ·

Thank You very much, it works!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.