How to sort a list in a text field & Suggested values ​​section

Hey guys could someone help?

in my table I have these fields
[tipo_tarifa] Enum "Matricula","Mensualidad"
[nombre] type text
In the Suggested values ​​section I have this formula
IF(
[tipo_tarifa] = "Mensualidad",
SELECT(meses[mes], [mes_laborable] = "Si"),
LIST("")
)
It returns the list without any problems, but I would like it to be returned in order by the [orden] field of the meses table

"meses" table records

LeviP_0-1748544314129.png


With the formula it returns the result in this way, I want it to return the months as they are ordered in the original table

LeviP_1-1748544819093.png

 

 

0 4 149
4 REPLIES 4

Try

ORDERBY(SELECT(...),[orden], TRUE/FALSE)

Thank you, i am trying this

IF( 
  [tipo_tarifa] = "Mensualidad",
  ORDERBY(
    SELECT(meses[mes], [mes_laborable] = "Si"),
    [orden], TRUE),
  LIST("")
)

I getting this error ORDERBY has invalid inputs

ORDERBY() requires key values as its first argument.

Try SORT(SELECT(table[non key col], condition)) instead

Hello, I have used this formula and the sorting works, but it shows the IDs and not the name of the month, although in the months table the [nombre] field is as label

 

IF( 
  [tipo_tarifa] = "Mensualidad",
  ORDERBY(
    SELECT(meses[id_mes], [mes_laborable] = "Si"),
    [orden],
    FALSE
  ),
  LIST("")
)

This is a text field with a formula in suggested value, OK.

 

 

Top Labels in this Space