Dependant dropdown with ORDERBY expression

I am trying to figure out how to properly write the dependent dropdown expression using the โ€œORDERBYโ€ expression to sort the resulting responses alphabetically.

Dependent drop down expression:
IN( [_THIS], SELECT(Inventory Items[Category], [_THISROW].[Factory] = [Category]))

Attempted to add orderby:
ORDERBY(IN( [_THIS],SELECT(Inventory Items[Category], [_THISROW].[Factory] = [Category]),[category]))

I get the error โ€œORDERBY has invalid inputsโ€

Iโ€™m pretty sure I wrote the expression wrong but I canโ€™t seem to figure out the correct way. Any suggestions?

1 3 461
3 REPLIES 3

Steve
Platinum 4
Platinum 4

Thank you @Steve I read the article but i seem to be miss understanding the structure of the expression.

The dependant dropdown expression should provide the list( Row key) of available responses filtered to provide only items that correspond with items in the โ€œfactoryโ€ column.

I also provided the column name for the sort(sort key) but i still get the error. Iโ€™m relatively new to this and I am not interpreting the instructions correctly. I also tried the sort expression but wound up with the same error.

IN() produces a singular Yes/No value, but ORDERBY() wants a list of Ref values. A Ref value is a value of the key column of a row of a table.

Is Category the key column of the Inventory Items table?

See also:



Top Labels in this Space