<?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: 'Cross measure' calculation in qlik in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142095#M92909</link>
    <description>&lt;P&gt;Maybe I ve not explained well myself, but I have several years. For each year I need to show the 'hierarchy' of each year and the information from previous years with each year 'hierarchy'&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2023 17:02:39 GMT</pubDate>
    <dc:creator>JohnIssue</dc:creator>
    <dc:date>2023-11-28T17:02:39Z</dc:date>
    <item>
      <title>'Cross measure' calculation in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142043#M92901</link>
      <description>&lt;DIV class="flex-1 overflow-hidden"&gt;
&lt;DIV class="react-scroll-to-bottom--css-hpyld-79elbk h-full"&gt;
&lt;DIV class="react-scroll-to-bottom--css-hpyld-1n7m0yu"&gt;
&lt;DIV class="flex flex-col pb-9 text-sm"&gt;
&lt;DIV class="w-full text-token-text-primary" data-testid="conversation-turn-13"&gt;
&lt;DIV class="px-4 py-2 justify-center text-base md:gap-6 md:py-6 m-auto"&gt;
&lt;DIV class="flex flex-1 text-base mx-auto gap-3 md:px-5 lg:px-1 xl:px-5 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem] } group final-completion"&gt;
&lt;DIV class="relative flex w-full flex-col lg:w-[calc(100%-115px)] agent-turn"&gt;
&lt;DIV class="flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;
&lt;DIV class="min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto" data-message-author-role="assistant" data-message-id="26dbbe8f-eb0a-4488-bc40-b5f93dbd9b38"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Hello everyone;&lt;/P&gt;
&lt;P&gt;I have a data model that seems to be unchangeable and a calculation problem that I present as follows.&lt;/P&gt;
&lt;P&gt;Let's imagine we have a table like this:&lt;/P&gt;
&lt;P&gt;Year Country Store Code&lt;/P&gt;
&lt;P&gt;2021&amp;nbsp; Spain&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;2021 France&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;
&lt;P&gt;2020 Spain&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;
&lt;P&gt;The situation is as follows. As you can see, the stores are related by their code, but they can change the country of management. I want to have in the same row in a table the country and two measures, the number of stores for a specific year, and the number of stores for the previous year. However, the relationship must be made through the code, i.e., if I study France, I should see that in 2021 there was one store and in 2020 another, as the country hierarchy should be that of the year being studied. Is there a way to achieve this? Thank you all very much!&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="mt-1 flex justify-start gap-3 empty:hidden"&gt;
&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center lg:justify-start mt-0 gap-1 visible"&gt;&lt;BUTTON class="flex items-center gap-1.5 rounded-md p-1 pl-0 text-xs hover:text-gray-950 dark:text-gray-400 dark:hover:text-gray-200 disabled:dark:hover:text-gray-400 md:invisible md:group-hover:visible md:group-[.final-completion]:visible"&gt;&lt;/BUTTON&gt;
&lt;DIV class="flex gap-1"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="flex items-center gap-1.5 text-xs"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BUTTON class="cursor-pointer absolute z-10 rounded-full bg-clip-padding border text-gray-600 dark:border-white/10 dark:bg-white/10 dark:text-gray-200 right-1/2 border-black/10 bg-token-surface-primary bottom-5"&gt;&lt;/BUTTON&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="w-full pt-2 md:pt-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:w-[calc(100%-.5rem)]"&gt;&lt;FORM class="stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl"&gt;
&lt;DIV class="relative flex h-full flex-1 items-stretch md:flex-col"&gt;
&lt;DIV class="flex w-full items-center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/FORM&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142043#M92901</guid>
      <dc:creator>JohnIssue</dc:creator>
      <dc:date>2024-11-15T21:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cross measure' calculation in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142049#M92902</link>
      <description>&lt;P&gt;Luckily for us all, this exact issue has been written up by HIC:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Design/Slowly-Changing-Dimensions/ba-p/1464187" target="_blank"&gt;https://community.qlik.com/t5/Design/Slowly-Changing-Dimensions/ba-p/1464187&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Note that in your case, it may be enough to simply link the tables by both Year and Store Code. You may need to fill in the missing values for years in that case.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 15:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142049#M92902</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-11-28T15:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cross measure' calculation in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142059#M92903</link>
      <description>&lt;P&gt;Hi! Thank you for your answer but I dont really understand it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In my case I have an unique table and I want to use the current country information for previous years.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 15:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142059#M92903</guid>
      <dc:creator>JohnIssue</dc:creator>
      <dc:date>2023-11-28T15:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cross measure' calculation in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142072#M92906</link>
      <description>&lt;P&gt;If you always want to use the most recent information, you can just load that one without loading any of the others. It should look something like:&lt;/P&gt;
&lt;P&gt;Load Code, FirstSortedValue(Country, -Year) as Country&lt;/P&gt;
&lt;P&gt;From YourTable&lt;/P&gt;
&lt;P&gt;Group By Code;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 16:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142072#M92906</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-11-28T16:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cross measure' calculation in qlik</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142095#M92909</link>
      <description>&lt;P&gt;Maybe I ve not explained well myself, but I have several years. For each year I need to show the 'hierarchy' of each year and the information from previous years with each year 'hierarchy'&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 17:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-measure-calculation-in-qlik/m-p/2142095#M92909</guid>
      <dc:creator>JohnIssue</dc:creator>
      <dc:date>2023-11-28T17:02:39Z</dc:date>
    </item>
  </channel>
</rss>

