<?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 Challenge: Adjust table according to week filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109396#M7506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&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;&lt;/P&gt;&lt;P&gt;I have added the source and the wanted outcome, which should speak for itself but some extra text below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a filter with the week. If you select a week, you should see that week in the outcome including -1 week and + 3 weeks. (like the example). If you selected a week below current week it should take next year. It is not needed to select father then one year from now. There is also a challenge when you select for example week 51, then i would like to see week 50, 51, 52, 1 and 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it shoud be like 5 expressions, with a formula but have not figured out how, but any other idea is welcome.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;If you have any questions, please do not hesitate to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2018 08:12:17 GMT</pubDate>
    <dc:creator>gorterzelf7</dc:creator>
    <dc:date>2018-08-22T08:12:17Z</dc:date>
    <item>
      <title>Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109396#M7506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&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;&lt;/P&gt;&lt;P&gt;I have added the source and the wanted outcome, which should speak for itself but some extra text below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a filter with the week. If you select a week, you should see that week in the outcome including -1 week and + 3 weeks. (like the example). If you selected a week below current week it should take next year. It is not needed to select father then one year from now. There is also a challenge when you select for example week 51, then i would like to see week 50, 51, 52, 1 and 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it shoud be like 5 expressions, with a formula but have not figured out how, but any other idea is welcome.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;If you have any questions, please do not hesitate to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109396#M7506</guid>
      <dc:creator>gorterzelf7</dc:creator>
      <dc:date>2018-08-22T08:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109397#M7507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is something that is quite close to what you are looking for I believe. You just have to tweak the expressions and possibly the weekstart day to finetune it. I leave that to you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-08-22 19_50_54-Qlik Sense Desktop.png" class="jive-image image-1" src="/legacyfs/online/211553_2018-08-22 19_50_54-Qlik Sense Desktop.png" style="height: 134px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 17:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109397#M7507</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-22T17:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109398#M7508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so very much Petter. I was lookging all day yesterday if somebody answered but your answer, just popped up this morning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 additional questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Can i do this without the crosstable in the script, because my original script is very long with a very long linktable.&lt;/P&gt;&lt;P&gt;So would be nice if i do not have to change that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Can the results also be presented in a straight table, because i wanna use lots of conitional formating, that is not available in the pivot table at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate your help, you have no idea how much;-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 08:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109398#M7508</guid>
      <dc:creator>gorterzelf7</dc:creator>
      <dc:date>2018-08-23T08:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109399#M7509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;It is even easier load script wise... just keep the source table format(s). Note: A CrossTable operation is very efficient and the table format you get is more tuned for analysis and BI puposes. I think keeping the format is less efficient but I do understand that with link-tables it could be a bit more complicated to handle.&lt;/LI&gt;&lt;LI&gt;Yes that is also relatively easy.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) You will have to have a synthetic dimension to give the rows for the Expected, Real and Stock:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =ValueList('Expected','Real','Stock')&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b) You will have to create five measures with a Pick() and Match() combination to get the right sum&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; according to which row that is displayed. For the first measure it will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;Pick( Match( ValueList('Expected','Real','Stock'), 'Expected','Real','Stock')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; ,Sum( {1&amp;lt;Date={"&amp;gt;=$(=WeekStart(Min(Date),&lt;STRONG&gt;-1&lt;/STRONG&gt;,0))&amp;lt;=$(=WeekEnd(Min(Date),&lt;STRONG&gt;-1&lt;/STRONG&gt;,0))"}&amp;gt;} Expected)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; ,Sum( {1&amp;lt;Date={"&amp;gt;=$(=WeekStart(Min(Date),&lt;STRONG&gt;-1&lt;/STRONG&gt;,0))&amp;lt;=$(=WeekEnd(Min(Date),&lt;STRONG&gt;-1&lt;/STRONG&gt;,0))"}&amp;gt;} Real)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; ,Sum( {1&amp;lt;Date={"&amp;gt;=$(=WeekStart(Min(Date),&lt;STRONG&gt;-1&lt;/STRONG&gt;,0))&amp;lt;=$(=WeekEnd(Min(Date),&lt;STRONG&gt;-1&lt;/STRONG&gt;,0))"}&amp;gt;} Stock)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;For the next four measures you only have to change the bolded -1 in the above expression to the 0,1,2 and 3.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I have attached an updated version of the app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 10:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109399#M7509</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-24T10:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109400#M7510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;I would like to thank you very much, I thought I knew quite a bit, but it turns out that I do not know that much at all. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;I tried your formula, which works perfectly, but have not completely figured it out yet, in my situation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;I am a little embarred, but i think i have not explained it well, wondered if you could take a look at it. It is totally my fault, but i think we are very close, i changed the source and the outcome in the enclosed documents. Could you please consider taking another look at it. I am really, really, happy with your help &lt;A href="https://community.qlik.com/qlik-users/146975"&gt;petter-s&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;Sincerely, Martijn&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2018 09:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109400#M7510</guid>
      <dc:creator>gorterzelf7</dc:creator>
      <dc:date>2018-08-25T09:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109401#M7511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Hello Petter, I am a little embarrased that i did not explain it well, but did you see my latest answer? I am really curious if there is way to fix it. Tnx again. Martijn&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 12:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109401#M7511</guid>
      <dc:creator>gorterzelf7</dc:creator>
      <dc:date>2018-08-28T12:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109402#M7512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - it is possible to do it. The Pivot Table would probably be quicker to use development-wise. It would be to extend what I already have shown you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 13:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109402#M7512</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-28T13:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109403#M7513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way - your Excel sheet for SourceNew.xlsx has an error in it... line 643 in fact. And the source data is not very well suited for testing as all numbers are the same for different years so it is hard to determine when developing whether you have the expressions right....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 13:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109403#M7513</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-28T13:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109404#M7514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thank you for your fast answer Petter, I changed the source and it should be better now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to work for the current week. Any idea how I can take 1 year off?&lt;/P&gt;&lt;P&gt;IF(Origin='Expected',&lt;/P&gt;&lt;P&gt;NUM(Sum( {1&amp;lt;Date={"&amp;gt;=$(=WeekStart(Min(Date),-1,0))&amp;lt;=$(=WeekEnd(Min(Date),-1,0))"}&amp;gt;} Amount)/&lt;/P&gt;&lt;P&gt;Sum( {1&amp;lt;Date={"&amp;gt;=$(=WeekStart(Min(Date),-1,0))&amp;lt;=$(=WeekEnd(Min(Date),-1,0))"}&amp;gt;} Amount1), '€ #.##0,000;€ #.##0,000-' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also thought about the pivot table:&lt;/P&gt;&lt;P&gt;1) I think I should make a new table with my linktable as the source? &lt;/P&gt;&lt;P&gt;2) Can I add 2 amounts and lot of dimensions? in the pivot table script?&lt;/P&gt;&lt;P&gt;3) I don't want to use a pivot table in the outcome, there i want a straight table because of the conditional formating. Is that possible? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understand what i mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 14:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109404#M7514</guid>
      <dc:creator>gorterzelf7</dc:creator>
      <dc:date>2018-08-28T14:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge: Adjust table according to week filter</title>
      <link>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109405#M7515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an AddYears() function tou can use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 03:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Challenge-Adjust-table-according-to-week-filter/m-p/109405#M7515</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-29T03:08:28Z</dc:date>
    </item>
  </channel>
</rss>

