<?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 to cout and IF? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089906#M921177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression which gives you YES and NO?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Apr 2016 08:17:18 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2016-04-23T08:17:18Z</dc:date>
    <item>
      <title>¿How to cout and IF?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089903#M921174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a big problem count with if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 fields (in Excel file) ID, DATE1 and DATE2 something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="253"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="76"&gt;DATE 1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="113"&gt;DATE 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="19" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20/04/2016 10:11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="19" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20/04/2016 10:03&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="19" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20/04/2016 09:26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="19" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20/04/2016 08:22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="19" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20/04/2016 08:21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="19" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20/04/2016 07:43&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="19" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20/04/2016 09:26&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make a IF combination that depends of some values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make a Table in qlik and add as Dimension ID, DATE 1 and DATE 2 and as measure "IF combination"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table in qlik shows like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="379"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl68" height="19" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="76"&gt;DATE 1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="113"&gt;DATE 2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="126"&gt;if((interval(AVG({$&amp;lt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;20/04/2016 10:11&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;20/04/2016 10:03&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;20/04/2016 09:26&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;20/04/2016 08:22&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;20/04/2016 08:21&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;20/04/2016 07:43&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20/04/2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;20/04/2016 09:26&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous table works! but i need count YES of this measure and divide by the total ID!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried create like a variable (dont works)&lt;/P&gt;&lt;P&gt;I tried make a count(statement) (dont works). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know what to do!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all.&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/How-to-cout-and-IF/m-p/1089903#M921174</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: ¿How to cout and IF?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089904#M921175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DATE 1],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DATE 2],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [if((interval(AVG({$&amp;lt;] as Field&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="214302" data-objecttype="1" href="https://community.qlik.com/thread/214302"&gt;https://community.qlik.com/thread/214302&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;expression in textbox&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=num(count({$ &amp;lt;Field={'YES'}&amp;gt;} Field) / Count(ID), '#,##0.00%')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122504_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 21:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089904#M921175</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-04-22T21:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: ¿How to cout and IF?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089905#M921176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send me the .qvf?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 21:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089905#M921176</guid>
      <dc:creator />
      <dc:date>2016-04-22T21:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: ¿How to cout and IF?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089906#M921177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression which gives you YES and NO?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Apr 2016 08:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089906#M921177</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-04-23T08:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: ¿How to cout and IF?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089907#M921178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(if((interval(AVG({$&amp;lt;[Categoria del sitio]={'C1'},[Status]={'Closed'},[Tracker]={'CM'}&amp;gt;}[Displacement time]), 'hh:mm:ss'))&amp;lt;='1','YES',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if((interval(AVG({$&amp;lt;[Categoria del sitio]={'C2'},[Status]={'Closed'},[Tracker]={'CM'}&amp;gt;}[Displacement time]), 'hh:mm:ss'))&amp;lt;='3','&lt;SPAN style="font-size: 13.3333px;"&gt;YES&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((interval(AVG({$&amp;lt;[Categoria del sitio]={'C3'},[Status]={'Closed'},[Tracker]={'CM'}&amp;gt;}[Displacement time]), 'hh:mm:ss'))&amp;lt;='3','&lt;SPAN style="font-size: 13.3333px;"&gt;YES&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((interval(AVG({$&amp;lt;[Categoria del sitio]={'C4'},[Status]={'Closed'},[Tracker]={'CM'}&amp;gt;}[Displacement time]), 'hh:mm:ss'))&amp;lt;='8','&lt;SPAN style="font-size: 13.3333px;"&gt;YES&lt;/SPAN&gt;',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((interval(AVG({$&amp;lt;[Categoria del sitio]={'C5'},[Status]={'Closed'},[Tracker]={'CM'}&amp;gt;}[Displacement time]), 'hh:mm:ss'))&amp;lt;='12','&lt;SPAN style="font-size: 13.3333px;"&gt;YES&lt;/SPAN&gt;','NO'))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Apr 2016 21:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-cout-and-IF/m-p/1089907#M921178</guid>
      <dc:creator />
      <dc:date>2016-04-23T21:16:02Z</dc:date>
    </item>
  </channel>
</rss>

