qlik-py-tools: Breaking change for Prophet Weekly Seasonality

Function Prophet_Seasonality

Describe the bug Release 6.0 included changes to the usage of the Prophet_Seasonality function when calculating Weekly seasonality (commit 72034a9024c4dc56666493f0b13266b19bc412c5). Expressions using this capability will stop working until the fix described below is applied.

Fix The weekly seasonality now requires the Weekday function to be used in the dimension and the measure. This change allows the result to always be returned in the correct order.

The documentation and sample app were updated to reflect the changes: https://github.com/nabeel-oz/qlik-py-tools/blob/master/docs/Prophet.md#seasonality

In short, you’ll need to update the dimension for your chart to:

Weekday(FORECAST_DATE)

And the measure will be:

PyTools.Prophet_Seasonality(Max(Weekday(FORECAST_DATE)), $(vAccidentsByDate), '', 'freq=D, return=weekly, seasonality=weekly')

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (6 by maintainers)

Most upvoted comments

Yes, that’s what I did. Thanks for letting me know there is no other way for now. You can close this issue. Happy Holidays,

Olivier