<?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: Month start date key  based on FileBaseName in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840344#M1215251</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Am trying to say like below. In Qlik, if 2 fields are same name and same format, it will map and give expected results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you mentioned, QVD &amp;amp; Calendar are in different format. Try to have both in same format. For that, you can convert the date into number or in same format (date format).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the QVD, Load like below&lt;/P&gt;&lt;P&gt;Floor(Date)&amp;nbsp; as Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;in Calendar if its string format, convert like below&lt;/P&gt;&lt;P&gt;Floor(Date#(urfield, 'YYYYMMDD')) as Date&lt;/P&gt;&lt;P&gt;Now, both are in same format &amp;amp; it will give expected results.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 07:33:30 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2021-09-30T07:33:30Z</dc:date>
    <item>
      <title>Month start date key  based on FileBaseName</title>
      <link>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840265#M1215243</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have an excel file with the name 2021-09-29_Item, I am trying to create MonthStartDateKey&lt;/P&gt;&lt;P&gt;I have tried the below :&lt;/P&gt;&lt;P&gt;Date(MonthStart(Date(Date#(Left(Filebasename(),10),'YYYY-MM-DD'),'YYYYMMDD')))) as MonthStartDateKey which gives 01/09/2021 completely different format&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for&amp;nbsp; 20210901.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get to that point so that I can join to master calendar?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 22:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840265#M1215243</guid>
      <dc:creator>ngreddy1982</dc:creator>
      <dc:date>2021-09-29T22:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Month start date key  based on FileBaseName</title>
      <link>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840280#M1215244</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;=Date(MonthStart(Date#(Left(&lt;SPAN&gt;Filebasename()&lt;/SPAN&gt;,10),'YYYY-MM-DD')),'YYYYMMDD')&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 01:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840280#M1215244</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-09-30T01:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Month start date key  based on FileBaseName</title>
      <link>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840329#M1215245</link>
      <description>&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;In the QVD the values are in the format I am looking for but when I load into QVW the values are not joining to master calendar. Values look like below,&amp;nbsp;&lt;/P&gt;&lt;P&gt;44378&lt;BR /&gt;44409&lt;BR /&gt;44440&amp;nbsp;&lt;/P&gt;&lt;P&gt;DateKey in the master calendar is Number (20210901), maybe this is passing as text! any thoughts?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 06:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840329#M1215245</guid>
      <dc:creator>ngreddy1982</dc:creator>
      <dc:date>2021-09-30T06:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Month start date key  based on FileBaseName</title>
      <link>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840337#M1215249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Convert both into same format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Floor(Date)&amp;nbsp; in QVD&lt;/P&gt;&lt;P&gt;Floor(Date#(20210901, 'YYYYMMDD')) in Calendar if its string format.&lt;/P&gt;&lt;P&gt;So both will be number format, it will be map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 07:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840337#M1215249</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-09-30T07:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Month start date key  based on FileBaseName</title>
      <link>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840338#M1215250</link>
      <description>&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;I am sorry,&amp;nbsp; didn't understand what you mean. Please explain again.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 07:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840338#M1215250</guid>
      <dc:creator>ngreddy1982</dc:creator>
      <dc:date>2021-09-30T07:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Month start date key  based on FileBaseName</title>
      <link>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840344#M1215251</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Am trying to say like below. In Qlik, if 2 fields are same name and same format, it will map and give expected results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you mentioned, QVD &amp;amp; Calendar are in different format. Try to have both in same format. For that, you can convert the date into number or in same format (date format).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the QVD, Load like below&lt;/P&gt;&lt;P&gt;Floor(Date)&amp;nbsp; as Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;in Calendar if its string format, convert like below&lt;/P&gt;&lt;P&gt;Floor(Date#(urfield, 'YYYYMMDD')) as Date&lt;/P&gt;&lt;P&gt;Now, both are in same format &amp;amp; it will give expected results.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 07:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840344#M1215251</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-09-30T07:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Month start date key  based on FileBaseName</title>
      <link>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840359#M1215252</link>
      <description>&lt;P&gt;Filebasename() will be a text field. Since you always want the &lt;U&gt;first&lt;/U&gt; day of the month, keep it simple with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MonthStartDateKey = Left(Filebasename(),4)&amp;amp;Mid(Filebasename(),5,2)&amp;amp;'01'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try not use dates as key fields &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 08:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840359#M1215252</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2021-09-30T08:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Month start date key  based on FileBaseName</title>
      <link>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840616#M1215264</link>
      <description>&lt;P&gt;Thank you Mayil and Richard,&amp;nbsp; both are working.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 16:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-start-date-key-based-on-FileBaseName/m-p/1840616#M1215264</guid>
      <dc:creator>ngreddy1982</dc:creator>
      <dc:date>2021-09-30T16:42:55Z</dc:date>
    </item>
  </channel>
</rss>

