Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I create a menu with which I will manage the periods for calculating data in the dashboard. To do this, I create such a table inline:
Period_Level:
LOAD * INLINE [
Period_Level, Period_Calc,
Today, 'Num(Today())'
7Days, 'Num(Today()-6)'
30Days, 'Num(Today()-29)'
90Days, 'Num(Today()-89)'
];
Then I create a variable that I will use in the set analysis and get not the numeric period value as I expected, but just a string (see below)
What I get (in the expression preview)
I what I expected to see (in the expression preview)
So, the question is why I can't get num value using Period_Calc field in the expression? Please, help to understand.
You need to use $ sign expansion again. The first time you use it you bring in the field; the second time you evaluate what is included in the field
{"=$(=$(=Period_Calc))"}
You need to use $ sign expansion again. The first time you use it you bring in the field; the second time you evaluate what is included in the field
{"=$(=$(=Period_Calc))"}
Lorenzo, thank you for help, it works!