<?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 Please explain simple logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-explain-simple-logic/m-p/1655231#M729566</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have below simple table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Head Create ,Item Create&lt;BR /&gt;12/2/2024,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12/2/2024&lt;BR /&gt;12/4/2014,&lt;BR /&gt;2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Comparing two dates and expected o/p is below&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;To get above o/p i have used the expression =if([Head Create]=[Item Create],'Yes','No') in calculated dimension&amp;nbsp; and&amp;nbsp;&lt;/P&gt;&lt;P&gt;= count(if([Head Create]=[Item Create],'Yes','No')) as expression. Could some explain what happens with this expression&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>priya945</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Please explain simple logic</title>
      <link>https://community.qlik.com/t5/QlikView/Please-explain-simple-logic/m-p/1655231#M729566</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have below simple table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Head Create ,Item Create&lt;BR /&gt;12/2/2024,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12/2/2024&lt;BR /&gt;12/4/2014,&lt;BR /&gt;2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Comparing two dates and expected o/p is below&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;To get above o/p i have used the expression =if([Head Create]=[Item Create],'Yes','No') in calculated dimension&amp;nbsp; and&amp;nbsp;&lt;/P&gt;&lt;P&gt;= count(if([Head Create]=[Item Create],'Yes','No')) as expression. Could some explain what happens with this expression&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-explain-simple-logic/m-p/1655231#M729566</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain simple logic</title>
      <link>https://community.qlik.com/t5/QlikView/Please-explain-simple-logic/m-p/1655467#M729567</link>
      <description>&lt;P&gt;I don't think you really need this... I think Sum(1) should work for you as well... In fact you can perform the calculated dimension operation in the script and use it as a field&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD *,
	 If([Head Create] = [Item Create], 'Yes', 'No') as MatchFlag;
LOAD * INLINE [
    Head Create, Item Create
    12/2/2024, 12/2/2024
    12/4/2014
    2014
];&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-explain-simple-logic/m-p/1655467#M729567</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-09T13:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain simple logic</title>
      <link>https://community.qlik.com/t5/QlikView/Please-explain-simple-logic/m-p/1658588#M729568</link>
      <description>&lt;P&gt;Priya, did Sunny's example app and explanation get you a working use case?&amp;nbsp; If so, do not forget to return to your thread and use the Accept as Solution button on Sunny's post to give him credit for the assistance and let other Community Members know this worked for the use case.&amp;nbsp; If you are still needing further help, please leave an update.&lt;/P&gt;
&lt;P&gt;One area you may to spend some time browsing is the Design Blog, here is the base URL for that area, you can use it to search just this area to find how-to posts that may help on future endeavors.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 16:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-explain-simple-logic/m-p/1658588#M729568</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-17T16:15:02Z</dc:date>
    </item>
  </channel>
</rss>

