Show bigger number between them 4 numbers

I have a data list, with 4 results. For example:
A = 2
B = 3
C = 5
D = 1
How do I show in a list or field (any location), the largest number among them

Hi @CNST,

I guess the easiest way would be to create a custom list, put numbers into the numeric Data field, sort it by this Data field, and limit list length to 1 item.

Best,
Victor.

I came to think of this solution, but it didn’t work.
I explain why.

I have a list that I quoted:
A = 2
B = 3
C = 5
D = 1

And I have 4 buttons on one screen.
Each button represents a letter.
But I just want the letter button with the biggest result to be visible.

So I need to create a condition:
(Compare the results, and the result with the highest value, get me the button and leave the others hidden.

Like that

Hi @CNST,

You didn’t mention buttons before :wink:

But again: you can put your 4 buttons in a list and display only biggest element.

  1. Create a collection, call it “Results”:
    [ButtonName] - [NumValue]
    data:
    A 2
    B 3
    C 5
    D 1

  2. Create a custom list. Put a button inside. Put label on it via magic text: Current Result → Name.

  3. Sort this list by NumValue, descending.

  4. Limit the number of elements of a list to 1.

  5. Result: button with C will be displayed.

Note: this solves the problem as it has been formulated. And such solution has some restrictions (like that the list will not be automatically refreshed when data is changed dynamically - limiting list elements quantity has some specifics as I remember). So if you need a solution to some broader problem, you could provide a bit more context :slight_smile:

Best,
Victor.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.