<?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: How do I do an If? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983359#M946500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;SUM(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;ALMACEN2 = {'&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;TOMÉ&lt;/STRONG&gt;&lt;/SPAN&gt;'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;VENTA)/COUNT(DISTINCT &lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;ALMACEN2 = {'&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;TOMÉ&lt;/STRONG&gt;&lt;/SPAN&gt;'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt; [FECHA FACTURA]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;)/1000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Dec 2015 21:05:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-23T21:05:53Z</dc:date>
    <item>
      <title>How do I do an If?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983358#M946499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I trying to do an If like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ALMACEN2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='TOMÉ',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VENTA&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FECHA FACTURA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/1000,) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But it doesn't work,&amp;nbsp; what I want to do is to graph only the [Punto de Venta] called "TOMÉ"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-940063-109901/pastedImage_0.png"&gt;&lt;IMG class="jive-image image-1" height="129" src="https://community.qlik.com/legacyfs/online/109908_pastedImage_0.png" width="963" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can anybody help me with this please!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 20:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983358#M946499</guid>
      <dc:creator />
      <dc:date>2015-12-23T20:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I do an If?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983359#M946500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;SUM(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;ALMACEN2 = {'&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;TOMÉ&lt;/STRONG&gt;&lt;/SPAN&gt;'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;VENTA)/COUNT(DISTINCT &lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;ALMACEN2 = {'&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;TOMÉ&lt;/STRONG&gt;&lt;/SPAN&gt;'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt; [FECHA FACTURA]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;)/1000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 21:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983359#M946500</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-23T21:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I do an If?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983360#M946501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Sunny T,&amp;nbsp; it work perfectly... So I made a little change but the script also work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;=SUM({&amp;lt;ALMACEN2 = {'TOMÉ'}&amp;gt;}VENTA)/COUNT(DISTINCT [FECHA FACTURA])/1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; I think this is the if " ({&amp;lt;ALMACEN2 = {'TOMÉ'}&amp;gt;}"... So is not necessary write it twice...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Thanks again it was very useful to me...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 14:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983360#M946501</guid>
      <dc:creator />
      <dc:date>2015-12-24T14:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I do an If?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983361#M946502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, I am glad you were able to figure it out... Please close the thread since you have got what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 16:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983361#M946502</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-24T16:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I do an If?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983362#M946503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I don't know how can I close this discussion... Could you tell me?... I'm new here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 17:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983362#M946503</guid>
      <dc:creator />
      <dc:date>2015-12-24T17:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I do an If?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983363#M946504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for asking Fernando, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the left side of each response you can mark either a helpful or correct answer. When you mark an answer correct it closes the thread and also grants points to the person who helped solve your query. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards and Welcome to Qlik Community!!&lt;/P&gt;&lt;P&gt;Sara &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 17:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-do-an-If/m-p/983363#M946504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-24T17:35:20Z</dc:date>
    </item>
  </channel>
</rss>

