Column with ref to table not filtering correctly

Hi Guys,

I have a column called time slots that is references to table Horas_TM. The VALID_IF of this column has the following expression:

ORDERBY(SELECT(Horas_TM[ID],[Bloque]= [_THISROW].[BloqueHorario]),"Hora TM")

The column BloqueHorario is a virtual column with this expression:

[Zona_ID].[BloqueHorarioID]

I am getting the following data back that is not filtered.

0 13 285
13 REPLIES 13

Hi @Steve and @Aleksi,

Any pointers? I have ketp try to find a solution, one that did return the correct data was when I change the [_THISROW].[BloqueHorario]) to the corresponding value.

ORDERBY(SELECT(Horas_TM[ID],[Bloque]=2,โ€œHora TMโ€)

Steve
Platinum 4
Platinum 4

This:

ORDERBY(SELECT(Horas_TM[ID],[Bloque]= [_THISROW].[BloqueHorario]),"Hora TM")

Should be:

ORDERBY(SELECT(Horas_TM[ID],[Bloque]= [_THISROW].[BloqueHorario]),[Hora TM])

Hi @Steve

I did the change but it still not working. I took the order by out of the expression and still no luck.

Please provide a screenshot of the configuration of the column that generates this dropdown:

3X_a_7_a72448c991cb60d23be4117606e7540a801c3243.png

Please also provide a screenshot of the Valid If expression for that column.

Field

Valid_IF
3X_b_1_b1eb3eba79cc77f0a9a928cd3be097716693c3bc.png

Virtual column BloqueHorario
3X_6_3_63e137c9ace0e09a5a747085746f90c0d077b4fb.png

What result do you get from the Test button in Expression Assistant for that SELECT() expresion?

With this expression

ORDERBY(SELECT(Horas_TM[ID],[Bloque]= [_THISROW].[BloqueHorario]),[Hora TM])

with the following
3X_a_2_a24f3fdf4308a314a71ac94666e316f558f5b703.png

the test brings back the following data:

What would you infer from that?

That the [_ThisRow].[BloqueHorario] is not returning the a correct value? but I have placed the following formula in the Display section:
3X_8_e_8eb4e3b16512ecb78a76c3a8838804baf30cec18.png

3X_5_8_5824fecc541e385b87db241ecbc715fdaa979bb4.png

I would guess your data is corrupted somehow. I think someone needs to take a more direct look at your app, so Iโ€™m going to refer you to support@appsheet.com for more help. Sorry!

Thanks for your help!!! Have a great day.

Thanks @Steve found the culprit it whats an issue in the table duplicate IDs.

Top Labels in this Space