<?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: Merge Values from same Dimension - Last Week, This vs. Last Year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141467#M92829</link>
    <description>&lt;P&gt;Hi Micro,&lt;/P&gt;
&lt;P&gt;Please try this through the script and merge this Date&amp;nbsp;within a master calendar.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load *,&lt;BR /&gt;&lt;BR /&gt;Date(Date#(InvoiceDate,'YYYY.MM'),'YYYYMMDD') as Date&lt;/P&gt;
&lt;P&gt;From ......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this is your request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Panos&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 09:09:08 GMT</pubDate>
    <dc:creator>panosalexand</dc:creator>
    <dc:date>2023-11-27T09:09:08Z</dc:date>
    <item>
      <title>Merge Values from same Dimension - Last Week, This vs. Last Year</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141162#M92800</link>
      <description>&lt;P&gt;Hi Foks!&lt;/P&gt;
&lt;P&gt;Hope to get an solution - i am still working on for 2 days &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have a dimension "Invoicedate". It's formatted as date and autocalendar is working great.&lt;BR /&gt;Hint: We did not have an invoice on each day! Only monday to friday. So there is no value on a weekend.&lt;BR /&gt;Now i need to get this Dimension working for a Table Diagramm.&lt;/P&gt;
&lt;P&gt;I want to get a table to compare our sales volume at last week against last week in previous year.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sample Result&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Sales.PNG" style="width: 444px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120571i2CC2D3DC2190EEB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sales.PNG" alt="Sales.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my problem is - if there is no Invoice on weekend - there is no value as an row in my dimension. My idea was to merge both dateranges from 2023 and 2022, to get a full list of days from 20.11. to 26.11. in order to calculate the sales volume on this day (of this year).&lt;/P&gt;
&lt;P&gt;My last formular idea was this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;=date(	aggr(
    	only({1&amp;lt;[InvoiceDate.autoCalendar.Week]={"W$(=vWeek)"},[InvoiceDate.autoCalendar.Year]={"$(vActualYear)","$(vPreviousYear)"}&amp;gt;}[InvoiceDate]),
	[InvoiceDate]
    ),'DD.MM.')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I am so close... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My Result with this formular:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="SalesResult.PNG" style="width: 145px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120572iB3957C7020A16E31/image-size/large?v=v2&amp;amp;px=999" role="button" title="SalesResult.PNG" alt="SalesResult.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see - all Dates come together - by year. But i need them to combine to get the range from 13.11. (starting in '22) to 19.11. (Ending in '23). (*Dont be confused: This screenshot is a week before my first screenshot)&lt;/P&gt;
&lt;P&gt;I hope anybody understands my thoughts and needs. Does anyone got an idea how to handle this?&lt;/P&gt;
&lt;P&gt;Regards from Germany.&lt;/P&gt;
&lt;P&gt;Mirco&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 15:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141162#M92800</guid>
      <dc:creator>MacGyver</dc:creator>
      <dc:date>2023-11-24T15:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Values from same Dimension - Last Week, This vs. Last Year</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141172#M92802</link>
      <description>&lt;P&gt;If you have access to the loading script, this would be easier to add the missing days there I think.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 15:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141172#M92802</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-11-24T15:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Values from same Dimension - Last Week, This vs. Last Year</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141438#M92826</link>
      <description>&lt;P&gt;Mh, loading script is possible.&lt;/P&gt;
&lt;P&gt;In which way would you do this? Creating a new Dimension - just a bunch of day in last 3 years !?&lt;/P&gt;
&lt;P&gt;It there a way for a loop script to create this inline table?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 07:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141438#M92826</guid>
      <dc:creator>MacGyver</dc:creator>
      <dc:date>2023-11-27T07:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Values from same Dimension - Last Week, This vs. Last Year</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141457#M92828</link>
      <description>&lt;P&gt;If you have access to the script, you can add the missing dates for example.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 08:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141457#M92828</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-11-27T08:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Values from same Dimension - Last Week, This vs. Last Year</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141467#M92829</link>
      <description>&lt;P&gt;Hi Micro,&lt;/P&gt;
&lt;P&gt;Please try this through the script and merge this Date&amp;nbsp;within a master calendar.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load *,&lt;BR /&gt;&lt;BR /&gt;Date(Date#(InvoiceDate,'YYYY.MM'),'YYYYMMDD') as Date&lt;/P&gt;
&lt;P&gt;From ......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this is your request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Panos&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 09:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141467#M92829</guid>
      <dc:creator>panosalexand</dc:creator>
      <dc:date>2023-11-27T09:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Values from same Dimension - Last Week, This vs. Last Year</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141478#M92832</link>
      <description>&lt;P&gt;=date(aggr(&lt;BR /&gt;only({1&amp;lt;[InvoiceDate.autoCalendar.Week]={"W$(=vWeek)"}, [InvoiceDate.autoCalendar.Year]={"$(vActualYear)","$(vPreviousYear)"}&amp;gt;} WeekStart([InvoiceDate])),&lt;BR /&gt;WeekStart([InvoiceDate])&lt;BR /&gt;), 'DD.MM.')&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 09:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141478#M92832</guid>
      <dc:creator>Aasir</dc:creator>
      <dc:date>2023-11-27T09:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Values from same Dimension - Last Week, This vs. Last Year</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141517#M92834</link>
      <description>&lt;P&gt;The simples approach would be to add a date-field without a year-information within the calendar, like:&lt;/P&gt;
&lt;P&gt;dual(day(Date) &amp;amp; '.' &amp;amp; month(Date), daynumberofyear(Date)) as DateWithoutYear&lt;/P&gt;
&lt;P&gt;This is then the vertical dimension and your Year field becomes the horizontal dimension und sum(Sales) would work as expression. Instead of Year as horizontal dimension you may also use n expressions and define the years within a set analysis.&lt;/P&gt;
&lt;P&gt;With more as two years included there should be no weekend-gaps but gaps in regard to holidays and/or other exceptions are further possible. If you really want to prevent any gaps you will need to populate the missing data within the fact-table.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 11:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2141517#M92834</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-11-27T11:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Values from same Dimension - Last Week, This vs. Last Year</title>
      <link>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2142700#M92955</link>
      <description>&lt;P&gt;Thanks to all contributers an their solutions. It was hard to find a possible way.&lt;/P&gt;
&lt;P&gt;The best solution to me is marked and inspired me to solve my problem.&lt;/P&gt;
&lt;P&gt;Thanks all.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 08:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Merge-Values-from-same-Dimension-Last-Week-This-vs-Last-Year/m-p/2142700#M92955</guid>
      <dc:creator>MacGyver</dc:creator>
      <dc:date>2023-11-30T08:42:52Z</dc:date>
    </item>
  </channel>
</rss>

