<?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>article Qlik NPrinting Filter Rules and Limitations in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/ta-p/1713530</link>
    <description>&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik NPrinting" id="qlikNPrinting"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="anchor-3"&gt;Filter Rules&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Formulas are evaluated first, in order to have static values to manage.&lt;/LI&gt;
&lt;LI&gt;Filters will not necessarily overwrite past selections. There is no strict hierarchy.&lt;/LI&gt;
&lt;LI&gt;Each filter will be analyzed in sequence:&lt;STRONG&gt;&lt;I&gt;&amp;nbsp;"task -&amp;gt; user -&amp;gt; report -&amp;gt; object&lt;/I&gt;&lt;/STRONG&gt;."&lt;/LI&gt;
&lt;LI&gt;The values of filter fields at different levels will be intersected.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;If the intersection gives an empty result, the filter chain will become invalid.&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;There is no limit to how many task, report, object, or users filters you can apply in an app. However, &lt;STRONG&gt;only one object filter&lt;/STRONG&gt; can be applied to a single &lt;STRONG&gt;image &lt;/STRONG&gt;or &lt;STRONG&gt;table &lt;/STRONG&gt;object in the NPrinting template editor.&lt;/LI&gt;
&lt;LI&gt;If the application of a filter results in an impossible selection, a specific error is returned: "Cannot apply filter&amp;nbsp;{0}&amp;nbsp;to current document data. Requested fields with evaluates are:&amp;nbsp;{1}",&lt;/LI&gt;
&lt;LI&gt;'Empty Set' Logging errors can be expected if the same dimension is used as a filter value twice in the &lt;STRONG&gt;&lt;I&gt;"task -&amp;gt; user -&amp;gt; report -&amp;gt; object"&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;sequence.&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV style="margin-left: 80px;"&gt;&lt;U&gt;Filter intersection example:&lt;/U&gt; &lt;STRONG&gt;city=paris (user filter)&lt;/STRONG&gt; and &lt;STRONG&gt;city=seatte (task filter)&lt;/STRONG&gt;&lt;BR /&gt;&lt;U&gt;Result&lt;/U&gt;&lt;STRONG&gt;: "Empty Set" &lt;/STRONG&gt;Error logging&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;P&gt;*Note that there is one specific flag that allows you to change these behaviors: "&lt;STRONG&gt;Override values"&lt;/STRONG&gt;. This flag, which is related to specific fields of a filter, allows you to clear the selections on a certain field on a certain level of the chain.&lt;BR /&gt;&lt;BR /&gt;To view other examples of Filter intersections see the reference link below:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Reference&lt;/STRONG&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm" target="_blank" rel="noopener"&gt;Filters&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Other Important Limitations to note:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Tables that have calculated dimensions or null values can be used as levels in the template editor, however it is not supported to place&amp;nbsp;any objects or additional 'nested' levels within them. Error indicating this usage limitation: "&lt;STRONG&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;ERROR: Cannot expand cycle or level. Cycle expansion produces an empty filter&lt;/SPAN&gt;&lt;/STRONG&gt;"&lt;/LI&gt;
&lt;LI&gt;Qlik Sense On-Demand reports with selections applied on calculated dimensions will fail. This limitation is also specified in the NPrinting product release notes attached to this article.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;To Ensure the report and report distribution works as expected, check the following:&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Filter Rules&lt;/STRONG&gt;: Ensure the report filters are not intersecting as per the Filter rules above (See reference link above for examples)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Nested Levels&lt;/STRONG&gt;: Do not add nested levels or other objects within a level that is derived from a Calculated Dimension. Consider moving the calculated dimension to the load script.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Formulas/Expressions the evaluate the full set of records&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp;"1" (Set Analysis Identifier) represents the full set of all the records in the application, irrespective of any selections (NPrinting Filters) made/used. This will interfere with normal NPrinting filtering.&amp;nbsp;Remove this value from your set expression/measure to mitigate filter errors. Using this identifier also results in the "&lt;STRONG&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Cycle expansion produces an empty filter&lt;/SPAN&gt;&lt;/STRONG&gt;" via&amp;nbsp;NPrinting previews and publish task execution&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Calculated Dimensions with On Demand&lt;/STRONG&gt;: The workaround is to move the calculated dimension formula to the load script&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 26 May 2021 09:01:17 GMT</pubDate>
    <dc:creator>Andre_Sostizzo</dc:creator>
    <dc:date>2021-05-26T09:01:17Z</dc:date>
    <item>
      <title>Qlik NPrinting Filter Rules and Limitations</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/ta-p/1713530</link>
      <description>&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik NPrinting" id="qlikNPrinting"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="anchor-3"&gt;Filter Rules&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Formulas are evaluated first, in order to have static values to manage.&lt;/LI&gt;
&lt;LI&gt;Filters will not necessarily overwrite past selections. There is no strict hierarchy.&lt;/LI&gt;
&lt;LI&gt;Each filter will be analyzed in sequence:&lt;STRONG&gt;&lt;I&gt;&amp;nbsp;"task -&amp;gt; user -&amp;gt; report -&amp;gt; object&lt;/I&gt;&lt;/STRONG&gt;."&lt;/LI&gt;
&lt;LI&gt;The values of filter fields at different levels will be intersected.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;If the intersection gives an empty result, the filter chain will become invalid.&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;There is no limit to how many task, report, object, or users filters you can apply in an app. However, &lt;STRONG&gt;only one object filter&lt;/STRONG&gt; can be applied to a single &lt;STRONG&gt;image &lt;/STRONG&gt;or &lt;STRONG&gt;table &lt;/STRONG&gt;object in the NPrinting template editor.&lt;/LI&gt;
&lt;LI&gt;If the application of a filter results in an impossible selection, a specific error is returned: "Cannot apply filter&amp;nbsp;{0}&amp;nbsp;to current document data. Requested fields with evaluates are:&amp;nbsp;{1}",&lt;/LI&gt;
&lt;LI&gt;'Empty Set' Logging errors can be expected if the same dimension is used as a filter value twice in the &lt;STRONG&gt;&lt;I&gt;"task -&amp;gt; user -&amp;gt; report -&amp;gt; object"&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;sequence.&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV style="margin-left: 80px;"&gt;&lt;U&gt;Filter intersection example:&lt;/U&gt; &lt;STRONG&gt;city=paris (user filter)&lt;/STRONG&gt; and &lt;STRONG&gt;city=seatte (task filter)&lt;/STRONG&gt;&lt;BR /&gt;&lt;U&gt;Result&lt;/U&gt;&lt;STRONG&gt;: "Empty Set" &lt;/STRONG&gt;Error logging&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;P&gt;*Note that there is one specific flag that allows you to change these behaviors: "&lt;STRONG&gt;Override values"&lt;/STRONG&gt;. This flag, which is related to specific fields of a filter, allows you to clear the selections on a certain field on a certain level of the chain.&lt;BR /&gt;&lt;BR /&gt;To view other examples of Filter intersections see the reference link below:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Reference&lt;/STRONG&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm" target="_blank" rel="noopener"&gt;Filters&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Other Important Limitations to note:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Tables that have calculated dimensions or null values can be used as levels in the template editor, however it is not supported to place&amp;nbsp;any objects or additional 'nested' levels within them. Error indicating this usage limitation: "&lt;STRONG&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;ERROR: Cannot expand cycle or level. Cycle expansion produces an empty filter&lt;/SPAN&gt;&lt;/STRONG&gt;"&lt;/LI&gt;
&lt;LI&gt;Qlik Sense On-Demand reports with selections applied on calculated dimensions will fail. This limitation is also specified in the NPrinting product release notes attached to this article.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;To Ensure the report and report distribution works as expected, check the following:&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Filter Rules&lt;/STRONG&gt;: Ensure the report filters are not intersecting as per the Filter rules above (See reference link above for examples)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Nested Levels&lt;/STRONG&gt;: Do not add nested levels or other objects within a level that is derived from a Calculated Dimension. Consider moving the calculated dimension to the load script.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Formulas/Expressions the evaluate the full set of records&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp;"1" (Set Analysis Identifier) represents the full set of all the records in the application, irrespective of any selections (NPrinting Filters) made/used. This will interfere with normal NPrinting filtering.&amp;nbsp;Remove this value from your set expression/measure to mitigate filter errors. Using this identifier also results in the "&lt;STRONG&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Cycle expansion produces an empty filter&lt;/SPAN&gt;&lt;/STRONG&gt;" via&amp;nbsp;NPrinting previews and publish task execution&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Calculated Dimensions with On Demand&lt;/STRONG&gt;: The workaround is to move the calculated dimension formula to the load script&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 26 May 2021 09:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/ta-p/1713530</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2021-05-26T09:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik NPrinting Filter Rules and Limitations</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/tac-p/1864053#M4914</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Se puede crear en Nprinting filtros con dimensiones calculadas?, es decir, tengo esta expresión en mi app y es un objeto panel de filtrado con el siguiente calculado:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;aggr(if(&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Año={'$(=max(Año))'}, ID_TABLA={1,2,3}&amp;gt;}VentaTotSinIva)&amp;gt;0&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Año={'$(=max(Año)-1)'}, ID_TABLA={1,2,3}&amp;gt;}VentaTotSinIva) &amp;gt;0,'Mismas', 'NMT'), IDCadenaTienda,&lt;/P&gt;
&lt;P&gt;$(vCampos))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Es posible generar un filtro en un reporte, pero que este filtro solo afecte a ciertos objetos del reporte?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quedamos atentos a tus comentarios sobre estas dudas.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 19:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/tac-p/1864053#M4914</guid>
      <dc:creator>Gerardo1</dc:creator>
      <dc:date>2021-11-26T19:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik NPrinting Filter Rules and Limitations</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/tac-p/1866525#M4955</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/119331"&gt;@Gerardo1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend posting your query on the NPrinting forums for better access to the rest of the community:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-NPrinting-Discussions/bd-p/qlik-nprinting-discussions" target="_blank" rel="noopener"&gt;NPrinting Discussions&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 13:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/tac-p/1866525#M4955</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-12-03T13:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik NPrinting Filter Rules and Limitations</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/tac-p/1866574#M4957</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Is it possible to generate a filter in a report, but that this filter only affects certain objects in the report?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;aggr(if(&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Año={'$(=max(Año))'}, ID_TABLA={1,2,3}&amp;gt;}VentaTotSinIva)&amp;gt;0&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;sum({&amp;lt;Año={'$(=max(Año)-1)'}, ID_TABLA={1,2,3}&amp;gt;}VentaTotSinIva) &amp;gt;0,'Mismas', 'NMT'), IDCadenaTienda,&lt;/P&gt;
&lt;P&gt;$(vCampos))&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;It is possible to generate a filter in a report, but that this filter only affects certain objects of the report?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your support.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 14:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/tac-p/1866574#M4957</guid>
      <dc:creator>Gerardo1</dc:creator>
      <dc:date>2021-12-03T14:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik NPrinting Filter Rules and Limitations</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/tac-p/1896735#M5636</link>
      <description>&lt;P&gt;Thank you. I will do it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-NPrinting-Filter-Rules-and-Limitations/tac-p/1896735#M5636</guid>
      <dc:creator>Gerardo1</dc:creator>
      <dc:date>2022-02-23T18:41:42Z</dc:date>
    </item>
  </channel>
</rss>

