Creating a drop-down filed dependent of another one

Basically I have two fields with drop-downs. I want to make it so when I fill one, the other only shows values that corresponds the one that I've filled before.

To this second drop-down I'll have a table with two columns: one with unique values and one with values that matches the ones on the first drop-down.

Solved Solved
0 4 222
1 ACCEPTED SOLUTION

4 REPLIES 4

Thank you, it worked.

There's only one problem: the values on the second field are not sorted.

If I use a sort function inside the valid_if, the field loses its relation with the other field. If I just put the name of the table and column in the valid_if, it works as intended but then the values are shown in a very random order.

Any way to fix this?

I've managed to get the sort working by making the drop-down myself instead of just naming the column, like this:

SORT(SELECT(FÁBRICAS_PUPS[PUP], [FÁBRICA]=[_THISROW].[FAB]))

Top Labels in this Space