Hi @Jesse
I am using 2 parameters ( paramAsOfYear and paramAsOfMonth ) to compute relevant calculated fields prefixed with @. Pivot table is created as below and figures are correct.
Hi @lbl You can use the Relative Dates on the parameters (may need to make more parameters) to automatically default to a given date that represents the time period, and can use those in your table headers. It’s not as flexible as being able to write your own calculated logic, but you should be able to get most time periods represented using this (prefix each with ‘Month of’ or ‘Week of’, then put the parameter there…
Hi @Jesse great post.
I have a table grouped by week_date, and a column value of distinct count (account_id).
I need to calculate another column: distinct count (account_id) of the last 4 weeks period, for each week_date.
Note that the new calculated field should not equal to sum of distinct counts of relevant 4 weeks.
Thank you