I have a problem in creating record maintenance app for parcel shipping process. I have 3 or 4 tables (which contains courier details with tariffs and it is not a slice) . there is primary table called orders. in this order table there is column called courier name which is dynamic or ref values will be listed and it will be selected by the user. there is another column called tariff in the same primary table , this tariff column ref to the 3 or 4 tables (courier details with tariffs) which is dynamic based on the courier name given by the user at courier name column or field. my question is how to switch or ref tables based on the user given values? what is procedure ? is there any specific syntax available for selecting or switching tables ? kindly help my mail id is (PII Removed by Staff)
You cannot dynamically reference different tables from a single column. Period.
If you are OK NOT to use a column of ref for tariff (say currency), then you can pull values from different tables depending of the courier the user selects.
You can try something like below..
IFS(
ISNOTBLANC(FILTER("table 1", [courier] = [_THISROW].[tariff])),
LOOKUP([_THISROW].[courier], "table 1", "courier", "tariff"),
ISNOTBLANC(FILTER("table 2", [courier] = [_THISROW].[tariff])),
LOOKUP([_THISROW].[courier], "table 2", "courier", "tariff"),
and so on
)