79
Views
3
Comments
Solved
Possibility to calculate Mode in a expression using input variables
Question

Hello to all, i have a question that is if its possible to calculate, Mode in a expression using input variables?

If exists some system formula simplified in outsystems ,

 thanks in advance.

2021-06-02 20-50-04
Márcio Carvalho
Solution

Is this what you want?

There is a built-in function called Mod that you can use in expressions.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Math?_gl=1*1rcv8cu*_ga*MTg4ODIwMjQ2OS4xNjQ5OTIxOTkw*_ga_ZD4DTMHWR2*MTY1MjYzNDA3OS41LjEuMTY1MjYzOTc1Mi40OQ..

Let me know if it helps.

EDIT: 

If you want to find the value that appears the most in a data set of values, I think you need to create your own action to calculate the mode.

Regards,

Márcio

UserImage.jpg
Nuno Pereira

Thanks Márcio, i think i need the median ...instead of the mod... 

excuse the delay,

Regards,

Nuno Pereira

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Nuno,

The median is something quite different from a modulus, so make sure you understand what you are asked! Also, the median is calculated over a data set, so a List in OutSystems, and how to calculate the median can be easily found by googling.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.