AddColumns(
Switch(
varSelectedTable,
"Service Area", 'Service Areas',
"Sub-Service Area", 'Sub-Service Areas',
"OU Portfolios", 'OU Portfolios',
"OKR Vision Houses", 'OKR Vision Houses'
),
"FieldValue",
Switch(
varSelectedTable,
"Service Area", 'Service Areas'.ServiceAreaName,
"Sub-Service Area", 'Sub-Service Areas'.SubServiceAreaName,
"OU Portfolios", 'OU Portfolios'.PortfolioName,
"OKR Vision Houses", 'OKR Vision Houses'.VisionHouseName,
"OKR Vision Strategies", 'OKR Strategies'.StrategyName
)
The errors I'm getting are:
Error on Service Area Name Unexpected characters. The formula contains 'Service Area Name' where 'Ident' is expected. Expected operator. We expect an operator such as +, *, or & at this point in the formula. Name isn't valid. '_' isn't recognized., Unexpected characters. The formula contains 'BracketOpen' where 'Ident' is expected., Unexpected characters. The formula contains 'BracketOpen' where 'ParenClose' is expected., Unexpected characters. Characters are used in the formula in an unexpected way.
Is this something that is not possible?