<?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 Re: Formatting rules not working on Table in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1640641#M26709</link>
    <description>&lt;P&gt;Correction: I am using QlikView as data source. Not Qlik Sense.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 07:54:56 GMT</pubDate>
    <dc:creator>szeconku</dc:creator>
    <dc:date>2019-10-29T07:54:56Z</dc:date>
    <item>
      <title>Formatting rules not working on Table</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1640287#M26691</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I would like to color the background of a label based on the following two rules (which apparently cannot be stated in one sentence in NPrinting):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if value in the label &amp;lt; 0 =&amp;gt; background color green (I)&lt;/LI&gt;&lt;LI&gt;if value in the label &amp;gt; 0 =&amp;gt; background color red (II)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I can achieve this for labels that are defined in a detail report if I use levels as the data input type. It works perfectly.&lt;/P&gt;&lt;P&gt;When I apply the same logic/rules to labels where the underlying data input type is a table it does not work.&lt;/P&gt;&lt;P&gt;In this conditional formatting task I noticed that you can make a reference to the data in three different ways:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the Condition where I write my conditions (I) and (II)&lt;/LI&gt;&lt;LI&gt;Inside the Formatting Rules editor you can assign a Data Member&lt;/LI&gt;&lt;LI&gt;And on the actual label there is an option to add Data Binding&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have applied all three in the label where the&amp;nbsp;underlying data input type is a level column and it is working. 1. is strictly needed to apply the formatting. I am not sure if I can exclude 2. or 3 to still achieve conditions (I) and (II).&lt;/P&gt;&lt;P&gt;For the label where the&amp;nbsp;underlying data input type is a table column 2. is not an option. 2. can only be applied to Levels.&lt;/P&gt;&lt;P&gt;This leads me to my question:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is it possible to apply formatting rules to anything other that Levels? I wish to apply conditions (I) and (II) to a total column.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Extra question:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Do I need to use a particular function in Qlik Sense for the condtions (I) and (II) to work?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As an alternative I have tried to write a script and apply it to the label. I immediately got stuck when I tried to reference the value of the label.&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Qlik Sense as data source&lt;/LI&gt;&lt;LI&gt;NPrinting Designer 19.19.4.0.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please let me know if the above description needs screenshots or any additional information.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 10:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1640287#M26691</guid>
      <dc:creator>szeconku</dc:creator>
      <dc:date>2019-10-28T10:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting rules not working on Table</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1640562#M26706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please give us little bit more details. As I am quite accross NPrinitng I assume follwoing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you are talking about NPrinitng Pixel Perfect template&lt;/LI&gt;&lt;LI&gt;when talking about table &lt;EM&gt;"&lt;FONT color="#3366FF"&gt;....When I apply the same logic/rules to labels where the underlying data input type is a table it does not work...."&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;&lt;/FONT&gt; I guess you mean table tag (on the left side of NPrinitng designer&lt;UL&gt;&lt;LI&gt;If that is the case i do not see reason why you need to have conditional formatting rules there as this object is used to create charts or spark-lines only. So conditional formatting of "label" would have no use!&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 212px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22488iF73C9B399DC68FEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;if you are talking about tables from right hand side of the NPrinting Designer (PixelPerfect template) then those should be only created by using levels and as you mentioned conditional formatting works there just fine.&lt;UL&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 226px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22489i42965D2A0101A1A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Now, In your description you want to conditionally colour label - do you actually mean "&lt;STRONG&gt;a label&lt;/STRONG&gt;" object from the right hand side of&amp;nbsp;NPrinting Designer (PixelPerfect template)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22490i6E835705E5B5791A/image-size/small?v=v2&amp;amp;px=200" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am sure you are very close to achieve what you need, but it seems like you are probably using wrong objects in wrong places. Screenshots of your template would help greatly with some comments where you want to apply colours and based on conditions coming from xyz source.&lt;/P&gt;&lt;P&gt;Down to answers:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;Is it possible to apply formatting rules to anything other that Levels? I wish to apply conditions (I) and (II) to a total column.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;- screenshot would help. "Total column" is just another column so conditional formatting there will work just as on another columns in your level, so my answer is -yes it can be applied.a&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;Do I need to use a particular function in Qlik Sense for the condtions (I) and (II) to work&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;No, you dont - if you just comparing value to static value.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Happy to chat further if needed. If it is possible maybe put together sample QVF (ctrl+0+0 script and few UI objects) file and create sample report in nPrinting based on it, export it and attach here and we can work on actual sample so it will be easier to understand and discuss solutions.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 22:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1640562#M26706</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-10-28T22:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting rules not working on Table</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1640639#M26708</link>
      <description>&lt;P&gt;Hi Lech_Miszkiewicz&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;Your two assumptions are correct:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am using a Pixel Perfect template&lt;/LI&gt;&lt;LI&gt;When I say 'underlying data input type is a table' I mean a Table tag&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The table I am building in the Pixel Perfect template (PPt) looks like it is made from one table. However, I am using three different tables from QV. A grand total (first row in the PPt and one table in QV), a department total (second row in the PPT and another table in QV) and underlying sub-departments (third row and down in the PPt and a third table in QV).&lt;/P&gt;&lt;P&gt;Also, I am not using a Table object (as you indicate in your screenshot). Instead I am using Label objects (as you also indicate in your other screenshot) to create the table. All 'columns' are unique and I have decided to split them up and use labels instead of using the Table object.&lt;/P&gt;&lt;P&gt;I have setup a task in NPrinting that generates PDF's based on user filters. All users should receive the grand total, then the unique department total and the unique underlying sub-departments.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The grand total should be fixed for all users. That's why I am not using levels. It is not possible for me to retrieve this table from QV as a level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I cannot share any sample QVF.&lt;/P&gt;&lt;P&gt;Hope this explanation helps in understanding the issue I am having.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 07:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1640639#M26708</guid>
      <dc:creator>szeconku</dc:creator>
      <dc:date>2019-10-29T07:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting rules not working on Table</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1640641#M26709</link>
      <description>&lt;P&gt;Correction: I am using QlikView as data source. Not Qlik Sense.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 07:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1640641#M26709</guid>
      <dc:creator>szeconku</dc:creator>
      <dc:date>2019-10-29T07:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting rules not working on Table</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1641023#M26718</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;that makes sense.&lt;/P&gt;&lt;P&gt;So the TOTAL is not a column and it is a row. In this case i would have in QlikView a table with a Dimension representing TOTAL and use this table in The level.&lt;/P&gt;&lt;P&gt;Overall you need to change design of your report to base everything on the LEVEL tags.&lt;/P&gt;&lt;P&gt;That's all what i can suggest (well to be frank that is how i build my reports always)&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 21:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1641023#M26718</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-10-29T21:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting rules not working on Table</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1641098#M26725</link>
      <description>&lt;P&gt;Since the beginning of creating this custom table I have tried to import the two Total tables as levels.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason I have not been able to do so. And now I can.&lt;/P&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;Also realised now that you cannot using Formatting Rules on anything other than Levels.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 09:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Formatting-rules-not-working-on-Table/m-p/1641098#M26725</guid>
      <dc:creator>szeconku</dc:creator>
      <dc:date>2019-10-30T09:05:30Z</dc:date>
    </item>
  </channel>
</rss>

