<?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: Set analysis reference to each table's dimension or PICK/IF? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-reference-to-each-table-s-dimension-or-PICK-IF/m-p/2049501#M86261</link>
    <description>&lt;P&gt;I think it shouldn't be solved within the UI else within the data-model. For example with something like this:&lt;/P&gt;
&lt;P&gt;...&lt;BR /&gt;CostYear - BatchStartYear + 1 as #Year&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;which just calculates the offset between the years.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 12:26:10 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-03-15T12:26:10Z</dc:date>
    <item>
      <title>Set analysis reference to each table's dimension or PICK/IF?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-reference-to-each-table-s-dimension-or-PICK-IF/m-p/2049465#M86259</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;Still writing here, though ChatGPT is already solving many of the problems. But here also looking to your perspectives, not only get some useful code.&lt;/P&gt;
&lt;P&gt;I have some batches, manufactured yearly and I need to see their cost per year. So I need to see the "batch-2015" cost for 2015,2016 etc. Four years ahead. I can do it with pivot as below, but I was trying to find a more elegant/flexible solution.&lt;/P&gt;
&lt;P&gt;See below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlik_reference_to_dim.jpg" style="width: 706px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102816i707BA3205DD2E111/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlik_reference_to_dim.jpg" alt="qlik_reference_to_dim.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I tried with Set analysis, but I think it is not possible. For example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum({&amp;lt;Year = {$(=right(BatchName,4)))} &amp;gt;} Cost)&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;&lt;/P&gt;
&lt;P&gt;Any idea how should I approach this? Should I do it in pivot, or straight table with conditional logic (PICK/IF)?&lt;/P&gt;
&lt;P&gt;Thanks in afvance&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 11:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-reference-to-each-table-s-dimension-or-PICK-IF/m-p/2049465#M86259</guid>
      <dc:creator>antonopn</dc:creator>
      <dc:date>2023-03-15T11:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis reference to each table's dimension or PICK/IF?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-reference-to-each-table-s-dimension-or-PICK-IF/m-p/2049501#M86261</link>
      <description>&lt;P&gt;I think it shouldn't be solved within the UI else within the data-model. For example with something like this:&lt;/P&gt;
&lt;P&gt;...&lt;BR /&gt;CostYear - BatchStartYear + 1 as #Year&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;which just calculates the offset between the years.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 12:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-reference-to-each-table-s-dimension-or-PICK-IF/m-p/2049501#M86261</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-15T12:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis reference to each table's dimension or PICK/IF?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-reference-to-each-table-s-dimension-or-PICK-IF/m-p/2049626#M86278</link>
      <description>&lt;P&gt;Thank you for the reply. I will try it&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 15:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-reference-to-each-table-s-dimension-or-PICK-IF/m-p/2049626#M86278</guid>
      <dc:creator>antonopn</dc:creator>
      <dc:date>2023-03-15T15:25:40Z</dc:date>
    </item>
  </channel>
</rss>

