Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prophet function with dynamic dimension selection #116

Open
kokyeesiang opened this issue Oct 16, 2020 · 1 comment
Open

Prophet function with dynamic dimension selection #116

kokyeesiang opened this issue Oct 16, 2020 · 1 comment
Labels
usage exception Exception during a SSE function call from Qlik

Comments

@kokyeesiang
Copy link

kokyeesiang commented Oct 16, 2020

Function
Prophet function for forecast.

Describe the bug
I'm using the prophet function for the forecast. I would like to know is there a way to make the forecast reflect according to any dimension selection that I made?

So far I've tried with hardcoded dimension value in set analysis work.
For eg. Pytools.Prophet(DATE,If($(vVisible) = 1,sum({<State={'ABC'}>}SALES_AMT)),'freq=D,return=y_then_yhat')

But I would like to know would it be possible the forecast function work without doing the hardcoded set analysis value in measurement?

Expected Result: Forecast work when user made any dimension filtration. Eg. selection made on any dimension value of state then the forecast will display according to the selection made.

Appreciate any advice/feedback.

Thanks.

Full error message from Python
Provide full stack trace for the error.
If using Qlik-Py-Start you can provide screenshots from the terminal. Make sure to go all the way up to the start of the errors.
Alternatively, you can provide the latest log files from ../qlik-py-tools/qlik-py-env/core/logs.

Error message in Qlik
Provide a screenshot of the error message in Qlik.

Expression or load script used in Qlik
Provide a screenshot of the expression or load script where the SSE is being used in Qlik.

Environment:

  • OS [e.g. Windows Server, Linux]
  • Qlik Sense Enterprise/ Desktop/ Kubernetes/ QlikView
  • SSE Version

Additional context
Add any other context about the problem here.

@kokyeesiang kokyeesiang added the usage exception Exception during a SSE function call from Qlik label Oct 16, 2020
@kokyeesiang kokyeesiang changed the title Hi, Prophet function with dynamic dimension selection Oct 16, 2020
@nabeel-oz
Copy link
Owner

Hi @kokyeesiang, yes this is possible by creating a Forecast Calendar in the load script and using date dimensions from this specially prepared table for the forecasts. This technique is described in the documentation below:
https://github.com/nabeel-oz/qlik-py-tools/blob/master/docs/Prophet.md#use-prophet-with-your-own-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage exception Exception during a SSE function call from Qlik
Projects
None yet
Development

No branches or pull requests

2 participants