Hoping for some guidance here if possible. I have a set a monthly reports that cycle through a set of Agent Codes and generate a report for each, regardless of whether there was any financial activity in the given month for that agent.
I am trying to add a condition that suppresses those reports that do not have any data (in the interests of saving time and paper!)
I thought the simplest solution would be to add a condition with a Rule where the relevant variable was not equal to NULL but this does not seem to work. I have tried it using the Expression method where not equal to NULL() and other variations but it carries on cycling through all reports even if they do not have data.
I was not adding anything to this conversation as it was hard to establish what was the actual issue in your case, what was your requirement, what worked and what didn't. I saw many different options and each of them had merit but also each of them was focused on different approach. Some were talking about reports without cycle, some were talking about levels and the way we could utilize table for that (but obviously this cannot be used with cycles), some were talking about conditions etc etc..
I will try to structure this little bit.
If your requirement is to cycle over Agent Code values and produce report only for those agent code values where there is data the only solution would be to use "Advanced search filter" to filter out "agent codes" to only those which do have data. Using "Chart has values" option in condition where your report is using cycle will not work as individual values of cycle are not evaluated in condition!
create condition as follows selecting the 'correct' connection ID and choosing the correct chart.
Add this condition to the publish task
Run the Publish task
The result should be that when publish task executes the user that has a certain agent code assigned to it, then the condition is applied to the published task, reports should only be sent to that user when the chart in the condition contains values.
Let us know if this works...
We are just 'like' you and like to be liked when providing a helpful answer. You may also press the 'Solution Accepted' button if an answer provided resolves your question or issue... Cheers!
Thank you, Frank. I have added a chart to the exhibit which drives the report, however nPrinting doesn't seem to be picking it up in the dropdown when I try and build the new rule. is there another step I have to take in order for this to happen?
Report recipients are defined as users in Qlik NPrinting also if they are external; you are sending them reports via email. So you can create filters and associate them to the related Qlik NPrinting users.
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.
I am not sure about the exact data model, but I feel its worth trying creating new agent code field just for reporting in the script having excluded agents not having data in the current month. Pl ignore if its not applicable in your situation.