<?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: Case expression: with date values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Case-expression-with-date-values/m-p/1543036#M457142</link>
    <description>&lt;P&gt;Hi how are you??&lt;BR /&gt;mmmmm it does not serve you directly to use the date to remove the year / month ??&lt;BR /&gt;try this:&lt;BR /&gt;(Preceding Load)&lt;BR /&gt;load *,&lt;BR /&gt;year (ImportDate) &amp;amp; '/' &amp;amp; num (month (ImportDate), '00') as ConversionMonth;&lt;/P&gt;&lt;P&gt;sql select *&lt;BR /&gt;from resident tblsales;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!!!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 13:31:20 GMT</pubDate>
    <dc:creator>Marcos_rv</dc:creator>
    <dc:date>2019-02-12T13:31:20Z</dc:date>
    <item>
      <title>Case expression: with date values</title>
      <link>https://community.qlik.com/t5/QlikView/Case-expression-with-date-values/m-p/1542946#M457140</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How do I use apply this case expression when loading a .qvd?&lt;/P&gt;&lt;P&gt;Code works perfectly if my data source is SQL.&lt;/P&gt;&lt;P&gt;Looked at various examples posted on this forum, but could'nt find anything that deals with a date range?&lt;/P&gt;&lt;P&gt;"Select *,&lt;/P&gt;&lt;P&gt;case&lt;/P&gt;&lt;P&gt;when ImportDate between '2017-12-01 00:00:01' and '2017-12-31 23:59:00' then '2017/12'&lt;BR /&gt;when ImportDate between '2018-01-01 00:00:01' and '2018-01-31 23:59:00' then '2018/01'&lt;BR /&gt;when ImportDate between '2018-02-01 00:00:01' and '2018-02-28 23:59:00' then '2018/02'&lt;BR /&gt;when ImportDate between ' 2018-03-01 00:00:01' and '2018-03-31 23:59:00' then '2018/03''&lt;BR /&gt;end as ConversionMonth&lt;/P&gt;&lt;P&gt;from tblsales"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 12:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-expression-with-date-values/m-p/1542946#M457140</guid>
      <dc:creator>TheMdu</dc:creator>
      <dc:date>2019-02-12T12:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Case expression: with date values</title>
      <link>https://community.qlik.com/t5/QlikView/Case-expression-with-date-values/m-p/1543030#M457141</link>
      <description>For this kind of ranges. The IntervalMatch() could be handy.&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/IntervalMatch.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/IntervalMatch.htm&lt;/A&gt;</description>
      <pubDate>Tue, 12 Feb 2019 13:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-expression-with-date-values/m-p/1543030#M457141</guid>
      <dc:creator>gn_marvs1989</dc:creator>
      <dc:date>2019-02-12T13:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Case expression: with date values</title>
      <link>https://community.qlik.com/t5/QlikView/Case-expression-with-date-values/m-p/1543036#M457142</link>
      <description>&lt;P&gt;Hi how are you??&lt;BR /&gt;mmmmm it does not serve you directly to use the date to remove the year / month ??&lt;BR /&gt;try this:&lt;BR /&gt;(Preceding Load)&lt;BR /&gt;load *,&lt;BR /&gt;year (ImportDate) &amp;amp; '/' &amp;amp; num (month (ImportDate), '00') as ConversionMonth;&lt;/P&gt;&lt;P&gt;sql select *&lt;BR /&gt;from resident tblsales;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!!!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 13:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-expression-with-date-values/m-p/1543036#M457142</guid>
      <dc:creator>Marcos_rv</dc:creator>
      <dc:date>2019-02-12T13:31:20Z</dc:date>
    </item>
  </channel>
</rss>

