<?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 3-way condition in a chart expression definition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184218#M49200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jim just a sugestion....&lt;/P&gt;&lt;P&gt;i think is really better if you use a set analisys.....more perfomance and more easy to group two IF´s!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Sep 2010 20:11:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-01T20:11:14Z</dc:date>
    <item>
      <title>3-way condition in a chart expression definition</title>
      <link>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184215#M49197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I am new to QlikView and I am trying to add a three way condition to a chart expression definition. I would normally do this with a if,then,else. Either that is not allowed in the definition or I can't seem to get the syntax down. Here is the code that I currently have for 2 conditions.&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;IF ((SLA_RECORD_SORT = '0001' OR SLA_RECORD_SORT = '0002' OR SLA_RECORD_SORT = '0003' OR SLA_RECORD_SORT = '0004')&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;AND (SLA_LINE='196' OR SLA_LINE='197' OR SLA_LINE='199' OR SLA_LINE='200' OR SLA_LINE='201' OR SLA_LINE='203'&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;OR SLA_LINE='205'OR SLA_LINE='209' OR SLA_LINE='230')&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;,Round(Sum (SLA_MTH_TON_00004)),ROUND (Sum (SLA_MTH_TON_00004),.1))&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;This works fine. If the condition is true it formats the output to the nearest whole number, If it is false it formats the number to 1 decimal which is what I want. The reason for this is because we sell some stuff in cases which are whole numbers and some stuff in tons which need to be carried out to one place to the right of the decimal. The problem is i need to add a format for 2 places to the right of the decimal. In pseudo code I would think it would look something like.&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;If condition1 then format1&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;Elseif condition2 then format2&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;Else format3&lt;/P&gt;&lt;P&gt;Any help or ideas would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 18:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184215#M49197</guid>
      <dc:creator />
      <dc:date>2010-09-01T18:49:28Z</dc:date>
    </item>
    <item>
      <title>3-way condition in a chart expression definition</title>
      <link>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184216#M49198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use nesteds if´s&lt;/P&gt;&lt;P&gt;if( cond1, format1, if(cond2, format2, format3))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 19:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184216#M49198</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2010-09-01T19:17:59Z</dc:date>
    </item>
    <item>
      <title>3-way condition in a chart expression definition</title>
      <link>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184217#M49199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did it. Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 20:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184217#M49199</guid>
      <dc:creator />
      <dc:date>2010-09-01T20:05:23Z</dc:date>
    </item>
    <item>
      <title>3-way condition in a chart expression definition</title>
      <link>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184218#M49200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jim just a sugestion....&lt;/P&gt;&lt;P&gt;i think is really better if you use a set analisys.....more perfomance and more easy to group two IF´s!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 20:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184218#M49200</guid>
      <dc:creator />
      <dc:date>2010-09-01T20:11:14Z</dc:date>
    </item>
    <item>
      <title>3-way condition in a chart expression definition</title>
      <link>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184219#M49201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set analisys expr....&lt;/P&gt;&lt;P&gt;ROUND(Sum ( {$&amp;lt;SLA_RECORD_SORT={'0001','0002','0003','0004'},SLA_LINE={'196','197','199','200','201','203','205','209','230'}&amp;gt;} SLA_MTH_TON_00004),.1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 20:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-way-condition-in-a-chart-expression-definition/m-p/184219#M49201</guid>
      <dc:creator />
      <dc:date>2010-09-01T20:16:45Z</dc:date>
    </item>
  </channel>
</rss>

