<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Setting variable in Nprinting report in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/m-p/2496221#M42353</link>
    <description>&lt;DIV class="flex-shrink-0 flex flex-col relative items-end"&gt;
&lt;DIV&gt;
&lt;DIV class="pt-0"&gt;
&lt;DIV class="gizmo-bot-avatar flex h-8 w-8 items-center justify-center overflow-hidden rounded-full"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;DIV class="flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex max-w-full flex-col flex-grow"&gt;
&lt;DIV class="min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words text-start [.text-message+&amp;amp;]:mt-5" dir="auto" data-message-author-role="assistant" data-message-id="612e1770-6637-4fdb-9c07-13d0be06c1e4" data-message-model-slug="gpt-4o"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I have a table in Qlik Sense where some measures and dimensions are computed based on a variable.&lt;/P&gt;
&lt;P&gt;For example, I use a measure like this:&lt;BR /&gt;&lt;CODE&gt;Aggr(Sum(UnitSales * UnitPrice), Customer $(v_aggr2))&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;When I don't need a second aggregation level, &lt;CODE&gt;v_aggr2&lt;/CODE&gt; is empty. When I need the second aggregation level, &lt;CODE&gt;v_aggr2&lt;/CODE&gt; might be equal to &lt;CODE&gt;,country&lt;/CODE&gt; or &lt;CODE&gt;,city&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;This works perfectly in Qlik Sense, where I can switch the value of &lt;CODE&gt;v_aggr2&lt;/CODE&gt; (e.g., to &lt;CODE&gt;,country&lt;/CODE&gt; or &lt;CODE&gt;,city&lt;/CODE&gt;) using a button.&lt;/P&gt;
&lt;P&gt;However, I now want to create a report in NPrinting, setting the variable to &lt;CODE&gt;,country&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;When I try to set the variable in the NPrinting filter, I get an error. I’ve tried several approaches: enabling the "Evaluate" option, using quotation marks, not using quotation marks... but nothing works.&lt;/P&gt;
&lt;P&gt;The error I receive is:&lt;BR /&gt;&lt;CODE&gt;Failed generation of report xxxxxx user xxxxx. ERROR: Cannot resolve content for node v_aggr (object: V\v_aggr2) due to invalid selections.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;What can I do to fix this issue?&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 05 Dec 2024 11:07:57 GMT</pubDate>
    <dc:creator>danette</dc:creator>
    <dc:date>2024-12-05T11:07:57Z</dc:date>
    <item>
      <title>Setting variable in Nprinting report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/m-p/2496221#M42353</link>
      <description>&lt;DIV class="flex-shrink-0 flex flex-col relative items-end"&gt;
&lt;DIV&gt;
&lt;DIV class="pt-0"&gt;
&lt;DIV class="gizmo-bot-avatar flex h-8 w-8 items-center justify-center overflow-hidden rounded-full"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;DIV class="flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex max-w-full flex-col flex-grow"&gt;
&lt;DIV class="min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words text-start [.text-message+&amp;amp;]:mt-5" dir="auto" data-message-author-role="assistant" data-message-id="612e1770-6637-4fdb-9c07-13d0be06c1e4" data-message-model-slug="gpt-4o"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I have a table in Qlik Sense where some measures and dimensions are computed based on a variable.&lt;/P&gt;
&lt;P&gt;For example, I use a measure like this:&lt;BR /&gt;&lt;CODE&gt;Aggr(Sum(UnitSales * UnitPrice), Customer $(v_aggr2))&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;When I don't need a second aggregation level, &lt;CODE&gt;v_aggr2&lt;/CODE&gt; is empty. When I need the second aggregation level, &lt;CODE&gt;v_aggr2&lt;/CODE&gt; might be equal to &lt;CODE&gt;,country&lt;/CODE&gt; or &lt;CODE&gt;,city&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;This works perfectly in Qlik Sense, where I can switch the value of &lt;CODE&gt;v_aggr2&lt;/CODE&gt; (e.g., to &lt;CODE&gt;,country&lt;/CODE&gt; or &lt;CODE&gt;,city&lt;/CODE&gt;) using a button.&lt;/P&gt;
&lt;P&gt;However, I now want to create a report in NPrinting, setting the variable to &lt;CODE&gt;,country&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;When I try to set the variable in the NPrinting filter, I get an error. I’ve tried several approaches: enabling the "Evaluate" option, using quotation marks, not using quotation marks... but nothing works.&lt;/P&gt;
&lt;P&gt;The error I receive is:&lt;BR /&gt;&lt;CODE&gt;Failed generation of report xxxxxx user xxxxx. ERROR: Cannot resolve content for node v_aggr (object: V\v_aggr2) due to invalid selections.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;What can I do to fix this issue?&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Dec 2024 11:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/m-p/2496221#M42353</guid>
      <dc:creator>danette</dc:creator>
      <dc:date>2024-12-05T11:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting variable in Nprinting report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/m-p/2496238#M42354</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130548"&gt;@danette&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i will need to test this tomorrow.&amp;nbsp;&lt;BR /&gt;i am assuming the problem is with the “,” in variable.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;will get back to you tomorrow with my results.&amp;nbsp;&lt;BR /&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 12:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/m-p/2496238#M42354</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-12-05T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Setting variable in Nprinting report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/m-p/2496380#M42358</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130548"&gt;@danette&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue was actually different than I thought.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case I hade to set "empty variable" to as " " (space) character and then filter of ",WeekDay" worked ok. It turend out that for some reason NPrinting does not like if variable had no defined value. By entering blank space as a default it then further work ok.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Variable in Qlik Sense (instead of empty string I put space in there)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_0-1733457585435.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175275i8333987938BAAFBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_0-1733457585435.png" alt="Lech_Miszkiewicz_0-1733457585435.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Showing toggle between aggr measure (same as yours aggr by single or multiple dimensions). In this case having a space does not break a single dimension aggr.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_1-1733457712208.gif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175276i7E58C686A5B2CCBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_1-1733457712208.gif" alt="Lech_Miszkiewicz_1-1733457712208.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;NPrinting filter - straight text with variable value i want to set&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_2-1733457810256.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175277i6976F5FD1C96C8AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_2-1733457810256.png" alt="Lech_Miszkiewicz_2-1733457810256.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Template&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_4-1733457985132.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175279i3B81C28E54A75E63/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_4-1733457985132.png" alt="Lech_Miszkiewicz_4-1733457985132.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_5-1733458027356.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175280i969532DA03A5220C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_5-1733458027356.png" alt="Lech_Miszkiewicz_5-1733458027356.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may want to open support ticket if you wish to see why empty string is not working but you will need to make sure you can provide Qlik with all the steps and sample apps to replicate the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps.&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 04:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/m-p/2496380#M42358</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-12-06T04:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting variable in Nprinting report</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/m-p/2496493#M42362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;It worked like a charm!&lt;/P&gt;
&lt;P&gt;Inside the dashboard, I changed the default variable value, adding an empty space.&amp;nbsp;After that, I was able to set the appropriate variable value in Nprinting, just like you explained.&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 10:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Setting-variable-in-Nprinting-report/m-p/2496493#M42362</guid>
      <dc:creator>danette</dc:creator>
      <dc:date>2024-12-06T10:12:05Z</dc:date>
    </item>
  </channel>
</rss>

