Forum Discussion
need help with PY calculation
Hi ,
I have created a period table with folliwng scripts. I want to give user flixibilty to select period and then this table is related to date dimension. How can I do the PY calculation when user selects rolling period like rolling one year? How I can design my dashboard? Need help to with these time intelligence calculation
3 Replies
- lbendlinSuper User
If you want to give them flexibility you should use the Advanced filtering in the filter pane and teach your users how to use that.
- DiKi-IPost Partisan
Thanks for your response. But I am looking for PY calculation based on period selected, so that it takes the same number of days dynamically and do the previous period calculation.
If rolling 1 year starts from 5-nov-2022 and ends at 5-nov-2023. Then then the PY will dynamically get the start date and end date.- lbendlinSuper User
Use the WINDOW function for that, or EDATE(-12)