Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Qlik Community!
This question is similar to a request asked in this thread.
But, let me explain the objective and some of the options that I tried, which may/may not be helpful for other folks having a similar problem.
Users / Customers would select a date range + other filters (e.g. UserID) and then generate its corresponding report via NPrinting Ondemand Report Generation within QlikSense.
This works fine on a data level, but the main objective is that, we would also want to represent the start date and end date of the date range actually selected by the user in the NPrinting Report. But unfortunately, as confirmed in the link above, it just shows the start date and end date for which there is data.
For e.g., We select the date range in QlikSense as 1/1/2019 - 12/31/2019 for a UserID and generate the corresponding NPrinting report via OnDemand functionality. But, the start date and end date in the NPrinting report shows as 5/1/2019 - 5/30/2019; because there is data only for that date range.
Below are the options that I tried to circumvent this problem.
Ultimately, the user should select the Date Range only ONCE while in QlikSense to generate the NPrinting report via OnDemand, but, obviously that should not be the data islands StartDate and EndDate fields, because every single calculation becomes an unnecessary set analysis and the whole report becomes extremely slow (because now the DateRange field is not filtering the records).
To summarize, I have two not so ideal solutions for a seemingly simple problem.
1. Utilize the Data islands StartDate and EndDate for getting the user daterange and store them in a variable and convert all of the formulae in all of the reports to complicated SetAnalysis formuale. (Phew!)
2. Ask the user to enter the DateRange twice within Qlik Sense! (i.e. once for the actual DateRange Field for filtering the records and secondly, for displaying the actual start and end date in the NPrinting Report). (But, user is not OK with this, and rightly so!)
Any other alternatives which will allow the User to select the date range ONLY ONCE within Qlik Sense and still display the actual start and end date in NPrinting report (genrated via OnDemand) would be really appreciated!
Thank you!
Sai
Hi David,
I did not find any better solution, so I went ahead with my first tedious option that I mentioned in my question.
"Utilize the Data islands StartDate and EndDate for getting the user daterange and store them in a variable and convert all of the formulae in all of the reports to complicated SetAnalysis formuale"
Did you ever come up with a solution for this? You may wish to speak with your Qlik Account Manager, this might be something for Qlik Consulting/Professional Services
Hi David,
I did not find any better solution, so I went ahead with my first tedious option that I mentioned in my question.
"Utilize the Data islands StartDate and EndDate for getting the user daterange and store them in a variable and convert all of the formulae in all of the reports to complicated SetAnalysis formuale"
I just had similar issue and I solved it by creating missing combinations of key fields required for selection. So if user needs to select Region, State, City and Date Range I make sure I have combinations of all possible keys (cartesian product with "where not exists" statement when loading) added to fact table (without actual facts) .
Solution mentioned above is also ok if volume of data is too large to create all possible combinations of records.
cheers
Lech
Yes, in my case the data is too large.
However, thank you so much for this suggestion! I will keep this in mind while building other future relatively smaller reports.
Regards,
Sai