Column references inside []

Hi to all,
I have this situation:
a table with these column:
pods ; 2 ; 3 ; 4 ; 5 ; 6 ; 7 ; 1
this table is referenced with another table
I donโ€™t know if it is possible, but Iโ€™m tryingโ€ฆ
in a formula of an action I want to create a reference to the column, corresponding to the day number.
Iโ€™ve tried this formula but it doesnโ€™t work
[PODS].[WEEKDAY(DATE)]
in fact I want to write in the formula 2 or 3 or 4 ecc ecc instead of โ€œweekday(date)โ€ in order to have, for that row, the value where weekday(date) match with the column name.
Many thanks

Solved Solved
0 2 131
1 ACCEPTED SOLUTION

Try using SWITCH() in your formula

SWITCH(
WEEKDAY(date here),
1,
[PODS].[1],
2,
[PODS].[2],
etc
)

View solution in original post

2 REPLIES 2

Try using SWITCH() in your formula

SWITCH(
WEEKDAY(date here),
1,
[PODS].[1],
2,
[PODS].[2],
etc
)

Great ideaโ€ฆ it works!!!

Top Labels in this Space