Using the Python SSE in your apps

Now that the Python environment is all set, we can use the functions we've enabled to allow linear regressions to analyze the data on the default data model.

Start by adding a line graph to your app. Use the Order Week as a dimension and add Sum(SalesAmmount) as a measure; check if you get an output.

Post this and add a linear regression line. Please add another measure with Linear.simple ([OrderDate.autoCalendar.Week],sum(SalesAmmount)) as an expression. 

The red line is calculated using our Python module, returning the values for our simple method.

When we've downloaded the GitHub package, there's a file named DataTrends.qvf. Please import this into Qlik Sense and check the examples for the other two methods. In this screen, you can compare linear regression using native Qlik functions and the three methods (Simple Linear, Linear Regression with Estimator, and Polynomial Linear Regression):

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset