<?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 NPrinting PixelPerfect - How to use Formula in Formatting Rules in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/NPrinting-PixelPerfect-How-to-use-Formula-in-Formatting-Rules/ta-p/1830059</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First of all sorry if this subject has already been report before or not, but from my research I haven't found anyone talking about this.&lt;/P&gt;&lt;P&gt;There is a solution to use Formula inside Formatting rules, like this it's possible the extend the range of possibility to use variable from QS for example.&lt;/P&gt;&lt;P&gt;As you may know, there is no option to add formula here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_0-1629427751062.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60498i36F2FC5C15F4000D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_0-1629427751062.png" alt="Mandom_0-1629427751062.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BUT it's still possible to use formula and that's what I want to share with you. It can be useful for other NPrinting designers.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;1) Below I created a simple formula (the result is obviously 'good')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_1-1629427751969.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60499i5A48DB6DCB937DBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_1-1629427751969.png" alt="Mandom_1-1629427751969.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) I created 2 labels and set them by default not visible&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_2-1629427752529.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60500iB6E0A7AAA238F5EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_2-1629427752529.png" alt="Mandom_2-1629427752529.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) I created 2 formatting rules to check if the formula has the value 'good' or 'wrong'. To use your formulas inside the condition just put them between brackets [], as done with table columns.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_3-1629427752682.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60502i24A3732AA1222E68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_3-1629427752682.png" alt="Mandom_3-1629427752682.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The formatting rule "FormulaWorking" is assign to the green textbox, the other formatting to the red (for the red the condition is replaced by 'wrong').&lt;/P&gt;&lt;P&gt;After launching a preview here is the result that you should get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_4-1629427752636.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60501iB4D4F4622D1789BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_4-1629427752636.png" alt="Mandom_4-1629427752636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nothing !!! and that's the expected result for anyone who think that it's not possible to use formula in formatting rules.&lt;/P&gt;&lt;P&gt;and here is the solution to make it works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_5-1629427752730.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60503i01271D5E35D9B2DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_5-1629427752730.png" alt="Mandom_5-1629427752730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And now after launching a preview again:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_6-1629427752214.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60505i6B501097E195E6C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_6-1629427752214.png" alt="Mandom_6-1629427752214.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the true expected result, as we set the condition '0=0' which is always true. If I replace by '0=1':&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_7-1629427752584.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60504iCF823454CE00C85A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_7-1629427752584.png" alt="Mandom_7-1629427752584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We get the result when the condition is false.&lt;/P&gt;&lt;P&gt;This was just a little condition, but it's possible to put variable for example and therefore use condition related to QS result.&lt;/P&gt;&lt;P&gt;It can be useful to use the formula in a label as a title of charts for example, but if designers don't need to display the formula textbox they just have to put it in another detail band set to not visible for example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_8-1629427752537.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60506i1F54B8C761AD6CBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_8-1629427752537.png" alt="Mandom_8-1629427752537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The most important is that the formula must be present inside the page (in a different band or not, hidden or not)&lt;/P&gt;&lt;P&gt;The version used is&amp;nbsp;&lt;SPAN&gt;NPrinting&amp;nbsp;February 2021 SR1 (Version: 21.0.2.0). Maybe the feature of using formula in Formatting rules has been implemented already in more recent version. Sorry again if this has already been reported and explained in another post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 02:57:42 GMT</pubDate>
    <dc:creator>Dadiop</dc:creator>
    <dc:date>2021-08-20T02:57:42Z</dc:date>
    <item>
      <title>NPrinting PixelPerfect - How to use Formula in Formatting Rules</title>
      <link>https://community.qlik.com/t5/Member-Articles/NPrinting-PixelPerfect-How-to-use-Formula-in-Formatting-Rules/ta-p/1830059</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First of all sorry if this subject has already been report before or not, but from my research I haven't found anyone talking about this.&lt;/P&gt;&lt;P&gt;There is a solution to use Formula inside Formatting rules, like this it's possible the extend the range of possibility to use variable from QS for example.&lt;/P&gt;&lt;P&gt;As you may know, there is no option to add formula here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_0-1629427751062.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60498i36F2FC5C15F4000D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_0-1629427751062.png" alt="Mandom_0-1629427751062.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BUT it's still possible to use formula and that's what I want to share with you. It can be useful for other NPrinting designers.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;1) Below I created a simple formula (the result is obviously 'good')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_1-1629427751969.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60499i5A48DB6DCB937DBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_1-1629427751969.png" alt="Mandom_1-1629427751969.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) I created 2 labels and set them by default not visible&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_2-1629427752529.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60500iB6E0A7AAA238F5EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_2-1629427752529.png" alt="Mandom_2-1629427752529.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) I created 2 formatting rules to check if the formula has the value 'good' or 'wrong'. To use your formulas inside the condition just put them between brackets [], as done with table columns.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_3-1629427752682.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60502i24A3732AA1222E68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_3-1629427752682.png" alt="Mandom_3-1629427752682.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The formatting rule "FormulaWorking" is assign to the green textbox, the other formatting to the red (for the red the condition is replaced by 'wrong').&lt;/P&gt;&lt;P&gt;After launching a preview here is the result that you should get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_4-1629427752636.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60501iB4D4F4622D1789BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_4-1629427752636.png" alt="Mandom_4-1629427752636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nothing !!! and that's the expected result for anyone who think that it's not possible to use formula in formatting rules.&lt;/P&gt;&lt;P&gt;and here is the solution to make it works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_5-1629427752730.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60503i01271D5E35D9B2DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_5-1629427752730.png" alt="Mandom_5-1629427752730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And now after launching a preview again:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_6-1629427752214.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60505i6B501097E195E6C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_6-1629427752214.png" alt="Mandom_6-1629427752214.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the true expected result, as we set the condition '0=0' which is always true. If I replace by '0=1':&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_7-1629427752584.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60504iCF823454CE00C85A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_7-1629427752584.png" alt="Mandom_7-1629427752584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We get the result when the condition is false.&lt;/P&gt;&lt;P&gt;This was just a little condition, but it's possible to put variable for example and therefore use condition related to QS result.&lt;/P&gt;&lt;P&gt;It can be useful to use the formula in a label as a title of charts for example, but if designers don't need to display the formula textbox they just have to put it in another detail band set to not visible for example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mandom_8-1629427752537.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60506i1F54B8C761AD6CBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mandom_8-1629427752537.png" alt="Mandom_8-1629427752537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The most important is that the formula must be present inside the page (in a different band or not, hidden or not)&lt;/P&gt;&lt;P&gt;The version used is&amp;nbsp;&lt;SPAN&gt;NPrinting&amp;nbsp;February 2021 SR1 (Version: 21.0.2.0). Maybe the feature of using formula in Formatting rules has been implemented already in more recent version. Sorry again if this has already been reported and explained in another post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 02:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/NPrinting-PixelPerfect-How-to-use-Formula-in-Formatting-Rules/ta-p/1830059</guid>
      <dc:creator>Dadiop</dc:creator>
      <dc:date>2021-08-20T02:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting PixelPerfect - How to use Formula in Formatting Rules</title>
      <link>https://community.qlik.com/t5/Member-Articles/NPrinting-PixelPerfect-How-to-use-Formula-in-Formatting-Rules/tac-p/1830855#M40</link>
      <description>&lt;P&gt;Useful, thanks for sharing!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 15:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/NPrinting-PixelPerfect-How-to-use-Formula-in-Formatting-Rules/tac-p/1830855#M40</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2021-08-24T15:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting PixelPerfect - How to use Formula in Formatting Rules</title>
      <link>https://community.qlik.com/t5/Member-Articles/NPrinting-PixelPerfect-How-to-use-Formula-in-Formatting-Rules/tac-p/1830886#M41</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/145565"&gt;@Dadiop&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nice share!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 17:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/NPrinting-PixelPerfect-How-to-use-Formula-in-Formatting-Rules/tac-p/1830886#M41</guid>
      <dc:creator>Frank_S</dc:creator>
      <dc:date>2021-08-24T17:22:33Z</dc:date>
    </item>
  </channel>
</rss>

