<?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: Date fields QlikSense challenge in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-fields-QlikSense-challenge/m-p/1527307#M37900</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It won't let me add the QVF, the content of the attachment doesn't match it file type?&lt;/P&gt;&lt;P&gt;Well i post the script here:&lt;/P&gt;&lt;P&gt;Section 1 Orders:&lt;/P&gt;&lt;P&gt;Orders:&lt;BR /&gt;LOAD&lt;BR /&gt;Location,&lt;BR /&gt;"Date" AS %KEY_Datum,&lt;BR /&gt;Expected,&lt;BR /&gt;Expected1,&lt;BR /&gt;Real,&lt;BR /&gt;Real1,&lt;BR /&gt;Stock&lt;BR /&gt;FROM [lib://Source/SourceWeeks.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Blad1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;Section 2 MasterCalender:&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;BR /&gt;Load&lt;BR /&gt;NUM(WEEKSTART(TempDate,0,-2)) AS WeekstartKalender,&lt;BR /&gt;RIGHT(YEAR(WEEKEND(TempDate,0,-2)+2),2)&amp;amp; IF(WEEK(WEEKEND(TempDate,0,-2)+2)&amp;lt;10,0&amp;amp;WEEK(WEEKEND(TempDate,0,-2)+2),WEEK(WEEKEND(TempDate,0,-2)+2)) AS JaarWeekKalender,&lt;BR /&gt;Autonumber(Week(weekstart(TempDate,0,-2)+2) &amp;amp; '-' &amp;amp; WeekYear(TempDate)) as WeekNUM&lt;BR /&gt;WHERE TempDate &amp;gt; Today()-50 AND TempDate &amp;lt; Today();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//=== Generate a temp table of dates ===&lt;BR /&gt;LOAD&lt;BR /&gt;date(mindate + IterNo()) AS TempDate&lt;BR /&gt;,maxdate // Used in InYearToDate() above, but not kept&lt;BR /&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;&lt;P&gt;//=== Get min/max dates from Field ===/&lt;BR /&gt;LOAD&lt;BR /&gt;min(FieldValue('%KEY_Datum', recno()))-1 as mindate,&lt;BR /&gt;max(FieldValue('%KEY_Datum', recno())) as maxdate&lt;BR /&gt;AUTOGENERATE FieldValueCount('%KEY_Datum');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The outcome should be a pivot table like in the excel. I got it working but not with the -1, -2 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Martijn&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 20:12:10 GMT</pubDate>
    <dc:creator>gorterzelf7</dc:creator>
    <dc:date>2019-01-07T20:12:10Z</dc:date>
    <item>
      <title>Date fields QlikSense challenge</title>
      <link>https://community.qlik.com/t5/App-Development/Date-fields-QlikSense-challenge/m-p/1527304#M37898</link>
      <description>&lt;P&gt;I got a real challenge for you guys. I really hope somebody is going to help me, please be my guest and try to build it yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I spended a hour to make a good example so i hope somebody can help me. I have added the source and the wanted outcome, which i hope should speak for itself&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really hope anybody is able to show me how this could be done in QlikSense, you can sent me the app or an example of the formulas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any questions, please do not hesitate to ask. I will try to add my example qvf also.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so very much for taking a look at this, this is really a challenge for me for a while now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards Martijn&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-fields-QlikSense-challenge/m-p/1527304#M37898</guid>
      <dc:creator>gorterzelf7</dc:creator>
      <dc:date>2024-11-16T21:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date fields QlikSense challenge</title>
      <link>https://community.qlik.com/t5/App-Development/Date-fields-QlikSense-challenge/m-p/1527307#M37900</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It won't let me add the QVF, the content of the attachment doesn't match it file type?&lt;/P&gt;&lt;P&gt;Well i post the script here:&lt;/P&gt;&lt;P&gt;Section 1 Orders:&lt;/P&gt;&lt;P&gt;Orders:&lt;BR /&gt;LOAD&lt;BR /&gt;Location,&lt;BR /&gt;"Date" AS %KEY_Datum,&lt;BR /&gt;Expected,&lt;BR /&gt;Expected1,&lt;BR /&gt;Real,&lt;BR /&gt;Real1,&lt;BR /&gt;Stock&lt;BR /&gt;FROM [lib://Source/SourceWeeks.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Blad1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;Section 2 MasterCalender:&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;BR /&gt;Load&lt;BR /&gt;NUM(WEEKSTART(TempDate,0,-2)) AS WeekstartKalender,&lt;BR /&gt;RIGHT(YEAR(WEEKEND(TempDate,0,-2)+2),2)&amp;amp; IF(WEEK(WEEKEND(TempDate,0,-2)+2)&amp;lt;10,0&amp;amp;WEEK(WEEKEND(TempDate,0,-2)+2),WEEK(WEEKEND(TempDate,0,-2)+2)) AS JaarWeekKalender,&lt;BR /&gt;Autonumber(Week(weekstart(TempDate,0,-2)+2) &amp;amp; '-' &amp;amp; WeekYear(TempDate)) as WeekNUM&lt;BR /&gt;WHERE TempDate &amp;gt; Today()-50 AND TempDate &amp;lt; Today();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//=== Generate a temp table of dates ===&lt;BR /&gt;LOAD&lt;BR /&gt;date(mindate + IterNo()) AS TempDate&lt;BR /&gt;,maxdate // Used in InYearToDate() above, but not kept&lt;BR /&gt;WHILE mindate + IterNo() &amp;lt;= maxdate;&lt;/P&gt;&lt;P&gt;//=== Get min/max dates from Field ===/&lt;BR /&gt;LOAD&lt;BR /&gt;min(FieldValue('%KEY_Datum', recno()))-1 as mindate,&lt;BR /&gt;max(FieldValue('%KEY_Datum', recno())) as maxdate&lt;BR /&gt;AUTOGENERATE FieldValueCount('%KEY_Datum');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The outcome should be a pivot table like in the excel. I got it working but not with the -1, -2 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Martijn&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 20:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-fields-QlikSense-challenge/m-p/1527307#M37900</guid>
      <dc:creator>gorterzelf7</dc:creator>
      <dc:date>2019-01-07T20:12:10Z</dc:date>
    </item>
  </channel>
</rss>

