<?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: Color in straight table based on condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013745#M343787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, rename KPI_NAME to PAYMENT_METHOD in script so that your payment info and threshold info are linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you compare the threshold_value with Error rate? as threshold_value is number and Error rate is on %.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 07:13:34 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-03-18T07:13:34Z</dc:date>
    <item>
      <title>Color in straight table based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013742#M343784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently struggling with a coloring problem of mine. I have the following straight table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="StraightTable.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118380_StraightTable.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Now I want to have a Background color for each row based on specific thresholds. Each Payment Method has its own three thresholds. For this I have a a table with those data stored.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Thresholds.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/118381_Thresholds.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for each row in the first image, I want to check the KPI_THRESHOLD_Values where the KPI_NAME is the same as the Payment_Method and get the color from the row where this threshold_value is next bigger value compared to the error rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I am completly unsure on how to achieve this. I hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 10:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013742#M343784</guid>
      <dc:creator />
      <dc:date>2016-03-17T10:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Color in straight table based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013743#M343785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any relation between the payment method and the thresholds. How are these linked? Did you forget to rename fields so the tables are associated correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013743#M343785</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-17T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Color in straight table based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013744#M343786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please is it answer your question.&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118499_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then below is the script and steps&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Paymethod,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;LOAD Paymethod,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Color,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threshold&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table with&lt;/P&gt;&lt;P&gt;Dimensions: Paymethod, Color Threshold&lt;/P&gt;&lt;P&gt;Expression: = Sum(Qty) and =Sum(Value)&lt;/P&gt;&lt;P&gt;Select Expression &amp;gt; Click on '+' sign &amp;gt; Click Background Color &amp;gt;&lt;/P&gt;&lt;P&gt;=if(sum(Value)&amp;gt;=aggr(Max(Threshold),Paymethod),RGB(51,255,51),&lt;/P&gt;&lt;P&gt;if(sum(Value)&amp;gt;aggr(Min(Threshold,2),Paymethod)and sum(Value)&amp;lt;aggr(Max(Threshold),Paymethod),RGB(255,255,51),&lt;/P&gt;&lt;P&gt;if(sum(Value)&amp;lt;=aggr(Min(Threshold,2),Paymethod),RGB(255,51,51))))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; in Definition&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 07:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013744#M343786</guid>
      <dc:creator>amayuresh</dc:creator>
      <dc:date>2016-03-18T07:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Color in straight table based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013745#M343787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, rename KPI_NAME to PAYMENT_METHOD in script so that your payment info and threshold info are linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you compare the threshold_value with Error rate? as threshold_value is number and Error rate is on %.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 07:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013745#M343787</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-18T07:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Color in straight table based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013746#M343788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi and thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed I had no connection between the two tables because I was not sure on what would be the best datamodel. I came up with a solution I do not really love but works for me. I extended the first table by three columns "GreenThreshold", "YellowThreshold" and "RedThreshold" and with this I was able to achieve at least my goal for this specific case. Nevertheless I would prefer a solution where I can have a any amount of thresholds for one payment method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 07:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013746#M343788</guid>
      <dc:creator />
      <dc:date>2016-03-18T07:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Color in straight table based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013747#M343789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi and thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution works fine for my case. Nevertheless I would prefer some kind of generic solution in order to be able to have any amount of thresholds for any payment method. But for now this works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 07:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013747#M343789</guid>
      <dc:creator />
      <dc:date>2016-03-18T07:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Color in straight table based on condition</title>
      <link>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013748#M343790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi and thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Indeed I had no connection between the two tables because I was not sure on what would be the best datamodel. The comparison is no problem because both values stand for percentage, I just have to multiply ErrorRate by 100 or divide threshold_value by 100. Now I have a solution that works for me. Thank you nevertheless.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 07:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Color-in-straight-table-based-on-condition/m-p/1013748#M343790</guid>
      <dc:creator />
      <dc:date>2016-03-18T07:27:55Z</dc:date>
    </item>
  </channel>
</rss>

