Lookup based on a dropdown from different table

I have 2 tables.
in the first table, in the field โ€œCittaSLโ€, I would take the values from another table in the column โ€œComuneโ€. I have solved this with type โ€œRefโ€.
Now when I take a value from โ€œCittaSLโ€, I would take the corresponding value also for other 2 fields in the second table โ€œProvinciaSLโ€.

I have tried with these formulas but not works:
IN( [_THIS], SELECT(GA_ANA_Comuni[PV], [_THISROW].[CittaSL] = [Comune]))
ANY(SELECT(GA_ANA_Comuni[PV], ([Comune] = [_THIS].[CittaSL])))
SELECT(GA_ANA_Comuni[PV],[Comune]=[_THISROW].[CittaSL])

3X_e_6_e652216233839f80a311d4bd9d9f2416145011b5.jpeg

Solved Solved
0 10 351
1 ACCEPTED SOLUTION

View solution in original post

10 REPLIES 10

Hi @Marc_Dillon,
thanks for your reply.

It works, but the field that is dinamically called, appears only when is chosen from the dropdown. It is possible to see it anyway also when it is not called?

Iโ€™m not sure what youโ€™re asking there. Can you elaborate?

The 2 fields that I call dinamically with the dropdown are hidden in the form if I not choose any value in the dropdown โ€œCittaSLโ€.
It is possible to see them anyway and so empty when I donโ€™t choose nothing in the dropdown โ€œCittaSLโ€?
@Marc_Dillon

If you donโ€™t choose anything for โ€œCittaSLโ€, the other 2 fields will be empty.

You can try to enter the expression TRUE into those 2 fieldsโ€™ show_if, but Iโ€™m not 100% sure thatโ€™ll work.

Why do you need them to be visible?

If you donโ€™t choose anything for โ€œCittaSLโ€, the other 2 fields will be empty.

Yes but I would these 2 fields always visibleโ€ฆ

Where I have to put the expression TRUE?

Do you mean this?

Yes

not worksโ€ฆ

Top Labels in this Space