<?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: Help with simple expression: if then statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-simple-expression-if-then-statement/m-p/1136815#M913807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try one of these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=&lt;STRONG&gt;If(CountryName = 'USA', Count(DISTINCT SHIPMENTS))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;CountryName = {'USA'}&amp;gt;} SHIPMENTS)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 17:48:14 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-24T17:48:14Z</dc:date>
    <item>
      <title>Help with simple expression: if then statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-expression-if-then-statement/m-p/1136814#M913806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somewhat new to qlikview and I need to create a simple expression, saying that if a certain criteria is met (in this case, CountryName = 'USA'), then I want to count the distinct number of shipments coming out of that country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following but it's not working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(CountryName = 'USA'),COUNT(DISTINCT(SHIPMENTS))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make sure that the count I get is only for shipments coming out of the USA, not all shipments from all countries.&amp;nbsp; What is the proper expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-expression-if-then-statement/m-p/1136814#M913806</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple expression: if then statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-expression-if-then-statement/m-p/1136815#M913807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try one of these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=&lt;STRONG&gt;If(CountryName = 'USA', Count(DISTINCT SHIPMENTS))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;CountryName = {'USA'}&amp;gt;} SHIPMENTS)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 17:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-expression-if-then-statement/m-p/1136815#M913807</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-24T17:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple expression: if then statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-expression-if-then-statement/m-p/1136816#M913808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second option worked.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;CountryName = {'USA'}&amp;gt;} SHIPMENTS)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 21:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-expression-if-then-statement/m-p/1136816#M913808</guid>
      <dc:creator />
      <dc:date>2016-05-24T21:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple expression: if then statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-expression-if-then-statement/m-p/1136817#M913809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then the if alternative of the set analysis is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count(DISTINCT If(CountryName = 'USA', SHIPMENTS))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 23:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-expression-if-then-statement/m-p/1136817#M913809</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-24T23:38:18Z</dc:date>
    </item>
  </channel>
</rss>

