Once we close another quarter, we need to change the pages and adjust QoQ calculated items (even though they may be based on variables).
What is the best way to select pages dynamically? For example, trailing 5 quarters?
Page 1 / 1
Hello Dmitrii,
You can create reports on trailing periods with dynamic pages utilizing dimension lists, metrics, and switchover dates as follows:
1. Configure "Switchover date" and "Switchover month" calendar metrics.
A ‘Switchover Date’ is a predefined Pigment Metric that determines the point (or date) when months are no longer actuals, but forecasted instead. It represents the most recent date at which the data is updated and can be updated manually or with formulas if desired.
2. Create a dimension list with your desired dynamic page types.
For example, you can have ‘YTD’, ‘QTD’, ‘MTD’, ‘Rolling 5 QTRs’, etc.
3. Craft dynamic page metrics using the dimension list.
For instance, to create the Rolling 5 QTRs metric, use the following formula:
5. Compile all dynamic period defining metrics into one main ‘Period-to-Date’ metric:
With this setup, you can easily utilize modifiers such as 'FILTER' and 'BY CONSTANT' to reduce the scope of your source data in other metrics.
For example, the below metric displays Actualdata in various dynamic period types defined in the ‘.PTD Flags’ metric we created:
With this, you should easily be able to calculate the trailing 12 months (TTM) by taking the most recent YTD, plus the last complete year, subtracted by the previous year’s YTD period
If you need any further assistance, don't hesitate to reach out!
Best regards,
Khalid Awale
Is there a way to use “Filter” in a view? For example, have a property in `Quarter` that shows relative period number, where `0` is current. Then use that as filter?