Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
daveatkins
Partner - Creator III
Partner - Creator III

Nprinting Report: creating a 28-day rolling average trendline in excel

I have followed the instructions here to create an excel chart as part of an nprinting (May 2021 SR2) report, creating a data table on one tab and then building charts and slicers on another tab in Excel.

https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/ExcelReports/Create-Excel-charts.htm

The requirement for the end users is to email an excel spreadsheet because they are not allowed to have access to our internal QlikSense applications; I am essentially reproducing Qlik features in Excel...

I have been able to add slicers and a linear trendline, but also need to have a 28-day rolling average on the same chart. When I edit the chart in the nprinting designer, I was able to add a 2-day moving average, but I cannot change that to a 28-day because the number in the box will not save as anything but "2".

daveatkins_1-1671036392873.png

 

daveatkins_0-1671032311444.png

I suspect this is because in the template, there are only 2 data rows. Anyone solved this kind of issue before?

Labels (1)
2 Solutions

Accepted Solutions
andregas
Partner - Creator II
Partner - Creator II

Hello @daveatkins 

I suspect that you cannot set average over than 2 days because the excel support table for graph has only two rows (as you told). You could try to insert at least 28 fake rows in the support table and delete the fake with special NPrinting tag <delete_row>.

Let me know if it solves the problem

Regards

View solution in original post

daveatkins
Partner - Creator III
Partner - Creator III
Author

actually...

by adding the blank rows, I am able to adjust the rolling average to 28. Although a preview/deleterows fails, I can simply delete the rows from the template and the setting of 28 appears to "stick" so when I run the report now...it works!

View solution in original post

9 Replies
Frank_S
Support
Support

Hi there,

Your post has been moved to the NPrinting Community so it will have more eyes on it from the many NPrinting Developers in that community.
Kind regards...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Frank_S
Support
Support

Hi again,

Perhaps you may prefer to use the formula editor achieve your objective?

If your formula works in Qlik Sense, it should also work in NPrinting. (as long as your formula does not attempt to produce an array of values).

Feel free to check the following article at your convenience

Kind regards...

 

 

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
daveatkins
Partner - Creator III
Partner - Creator III
Author

thanks for moving this...I was not able to find nprinting as a forum area when I posted...

I do not understand your response...I need to provide an excel chart containing a linear and a 28-day moving average trendline. The chart is based on a table which is linked to multiple slicers. I get the table from QlikSense and generate the graph in excel, in the Nprinting Designer, so that the user can click on the slicers to interactively change the graph in excel. I am very close now, but I cannot set the moving average to 28 days:

daveatkins_0-1671046297147.png

once I preview the chart, I am able to edit the format of the trendline to achieve the desired goal:

preview (both trendlines are faintly visible as dotted lines):

daveatkins_1-1671046703279.png

desired (edited the format of the trendline changing #days and color)

daveatkins_2-1671046887240.png

 

 

Frank_S
Support
Support

@rugger_piccoli @lech

Thoughts?

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Ruggero_Piccoli
Support
Support

Hi,

You could try to create a new, calculated, column in the Excel native table you are using as data source for the chart and make there the rolling average calculation.

About the issue with the chart I suggest that you open a support ticket with everything we need to replicate so see can better investigate.

Best REgards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
andregas
Partner - Creator II
Partner - Creator II

Hello @daveatkins 

I suspect that you cannot set average over than 2 days because the excel support table for graph has only two rows (as you told). You could try to insert at least 28 fake rows in the support table and delete the fake with special NPrinting tag <delete_row>.

Let me know if it solves the problem

Regards

daveatkins
Partner - Creator III
Partner - Creator III
Author

this sounded like a great idea, but when I do this...and go to preview:

daveatkins_0-1671218305215.pngdaveatkins_1-1671218363517.png

 

daveatkins
Partner - Creator III
Partner - Creator III
Author

actually...

by adding the blank rows, I am able to adjust the rolling average to 28. Although a preview/deleterows fails, I can simply delete the rows from the template and the setting of 28 appears to "stick" so when I run the report now...it works!

andregas
Partner - Creator II
Partner - Creator II

Hello @daveatkins 

I'm glad to know!

So, you could solve adding the lines, set the trendline to 28 days and finally delete the rows. Does it correct?