<?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 Two files - two month formats... help! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-files-two-month-formats-help/m-p/1197367#M628524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to scripting so apologise for the simplicity of the request (I will get better!); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have two files I'm loading into Qlik sense. Both have a month dimension/column which is needed in the app, they talk about different data relating to the same thing (a person, people), but applying the same months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. One file has the month format 1, 2, 3, 4 etc.... standing for January, February, March. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The other file has a Excel Formatting on, which is turning a full date into a month, e.g. 01/01/16 is the raw data, which displays as Jan-16,&amp;nbsp; other rows show Feb-16, Mar-16 for instance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. When I upload the two, I'm fine with the 1,2,3, 4 representing months. But I get the string of numbers for the other months from the other file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is A) how do I best/most efficiently resolve this without hard-coding months and in case of future files being added with the same month problem as the file which has Feb-16, Mar-16 and a string behind it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B) where should I add this script? I see I have two options, one is to add it to 'Main'... where a heap of 'SET' criteria are pre-written. The other is to go to the detailed load script for each file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in Main there is a SET criteria loading 'MonthNames....' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in the detailed data load (auto-generated) there is a heap of code related to each file and each column/dimension of data, there is a specific bit loading the dodgy Month format; &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Month] AS [Bill Rate Raw Data.Month],&lt;/P&gt;&lt;P&gt;...... /loads of other script for other columns/dimensions... &lt;/P&gt;&lt;P&gt;FROM.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's interesting it's changed the name of the Month column, because there is another file with a Month column... i guess to distinguish which data that month data is coming from. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated. I've looked high and low for a decent explanation of how to do this, but they never seem to explain where to put the script! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Oct 2016 16:00:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-01T16:00:18Z</dc:date>
    <item>
      <title>Two files - two month formats... help!</title>
      <link>https://community.qlik.com/t5/QlikView/Two-files-two-month-formats-help/m-p/1197367#M628524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to scripting so apologise for the simplicity of the request (I will get better!); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have two files I'm loading into Qlik sense. Both have a month dimension/column which is needed in the app, they talk about different data relating to the same thing (a person, people), but applying the same months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. One file has the month format 1, 2, 3, 4 etc.... standing for January, February, March. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The other file has a Excel Formatting on, which is turning a full date into a month, e.g. 01/01/16 is the raw data, which displays as Jan-16,&amp;nbsp; other rows show Feb-16, Mar-16 for instance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. When I upload the two, I'm fine with the 1,2,3, 4 representing months. But I get the string of numbers for the other months from the other file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is A) how do I best/most efficiently resolve this without hard-coding months and in case of future files being added with the same month problem as the file which has Feb-16, Mar-16 and a string behind it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B) where should I add this script? I see I have two options, one is to add it to 'Main'... where a heap of 'SET' criteria are pre-written. The other is to go to the detailed load script for each file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in Main there is a SET criteria loading 'MonthNames....' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in the detailed data load (auto-generated) there is a heap of code related to each file and each column/dimension of data, there is a specific bit loading the dodgy Month format; &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Month] AS [Bill Rate Raw Data.Month],&lt;/P&gt;&lt;P&gt;...... /loads of other script for other columns/dimensions... &lt;/P&gt;&lt;P&gt;FROM.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's interesting it's changed the name of the Month column, because there is another file with a Month column... i guess to distinguish which data that month data is coming from. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated. I've looked high and low for a decent explanation of how to do this, but they never seem to explain where to put the script! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Oct 2016 16:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-files-two-month-formats-help/m-p/1197367#M628524</guid>
      <dc:creator />
      <dc:date>2016-10-01T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Two files - two month formats... help!</title>
      <link>https://community.qlik.com/t5/QlikView/Two-files-two-month-formats-help/m-p/1197368#M628525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd prefer loading both month sources as dual month values, i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14755345414573759" jivemacro_uid="_14755345414573759"&gt;
&lt;P&gt;LOAD Month(Date#(monthfield,'M')) as monthfield&lt;/P&gt;
&lt;P&gt;From OneFile;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD Month(monthfield) as monthfield&lt;/P&gt;
&lt;P&gt;From OtherFile;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If this field is already loaded as dual date from your Excel source, otherwise &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14755345469306848" jivemacro_uid="_14755345469306848" modifiedtitle="true"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Month(Date#(monthfield,'MM/DD/YY')) as monthfield&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14755345502639037 jive_text_macro" jivemacro_uid="_14755345502639037" modifiedtitle="true"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Month(Date#(monthfield,'MMM-YY')) as monthfield&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;might be necessary.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 22:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-files-two-month-formats-help/m-p/1197368#M628525</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-03T22:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Two files - two month formats... help!</title>
      <link>https://community.qlik.com/t5/QlikView/Two-files-two-month-formats-help/m-p/1197369#M628526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marco - I will take a look and try this out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this take into account that in one file, the monthfield facts/values are 1, 2, 3, 4,&amp;nbsp; and in the second file the monthfield has facts/values which are Jan-16, Feb-16 - and these are formatted fields, so behind them lies the full date 01/01/2016&amp;nbsp; which is then displayed in Excel as Jan-16?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-files-two-month-formats-help/m-p/1197369#M628526</guid>
      <dc:creator />
      <dc:date>2016-10-05T09:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Two files - two month formats... help!</title>
      <link>https://community.qlik.com/t5/QlikView/Two-files-two-month-formats-help/m-p/1197370#M628527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I guess it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can upload small samples of both files to test with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-files-two-month-formats-help/m-p/1197370#M628527</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-05T21:35:55Z</dc:date>
    </item>
  </channel>
</rss>

