<?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 Use loose table field as filter in setanalysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-loose-table-field-as-filter-in-setanalysis/m-p/113933#M17630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to enable the user to select different periods (months, year, mat, yrd,...) and to show all three expressions (for actual period, previous period and same period last year - all related periods are set manually in a database table). It is an easy job with an&lt;STRONG&gt; if expressio&lt;/STRONG&gt;n, but the user has &lt;STRONG&gt;millions of data rows and that makes it really slow&lt;/STRONG&gt;. I cannot work with flags, calendars, e.g. because of the unlogical period definitions - in the attached sample app I have done it with: Sum(if(TimeDimension=Time, Sales)) for Actual, Sum(if(TimeDimension=TimeVP, Sales)) for Previous,..&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213197_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before, after and p() don't work, because the periods are not selected one after the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody knows an equivalent to the if-expression in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your assistance, a sample app is attached.&lt;/P&gt;&lt;P&gt;Best regards Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2018 20:59:20 GMT</pubDate>
    <dc:creator>p_noindl</dc:creator>
    <dc:date>2018-09-10T20:59:20Z</dc:date>
    <item>
      <title>Use loose table field as filter in setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-loose-table-field-as-filter-in-setanalysis/m-p/113933#M17630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to enable the user to select different periods (months, year, mat, yrd,...) and to show all three expressions (for actual period, previous period and same period last year - all related periods are set manually in a database table). It is an easy job with an&lt;STRONG&gt; if expressio&lt;/STRONG&gt;n, but the user has &lt;STRONG&gt;millions of data rows and that makes it really slow&lt;/STRONG&gt;. I cannot work with flags, calendars, e.g. because of the unlogical period definitions - in the attached sample app I have done it with: Sum(if(TimeDimension=Time, Sales)) for Actual, Sum(if(TimeDimension=TimeVP, Sales)) for Previous,..&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213197_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before, after and p() don't work, because the periods are not selected one after the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody knows an equivalent to the if-expression in set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your assistance, a sample app is attached.&lt;/P&gt;&lt;P&gt;Best regards Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 20:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-loose-table-field-as-filter-in-setanalysis/m-p/113933#M17630</guid>
      <dc:creator>p_noindl</dc:creator>
      <dc:date>2018-09-10T20:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use loose table field as filter in setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-loose-table-field-as-filter-in-setanalysis/m-p/113934#M17631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure but I think that this is rather not possible at least not with the given data-structure. But by considering any changes within the datamodel I could imagine that a "complete" As-Of-Table might be easier as any set analysis approach: &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means extending the TimeDim table to a main-period and sub-period category. The already existing TimeDimension is then the main category and Actual, Previous and LastYear are then the sub-category values. It's quite similar to the existing approach just duplicating it thrice (your link-table would have than approximately 20k records which shouldn't cause serious performance issues). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this you could use both fields as horizontal dimensions within the table and as expression a simple sum(Sales) should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 14:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-loose-table-field-as-filter-in-setanalysis/m-p/113934#M17631</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-11T14:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use loose table field as filter in setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-loose-table-field-as-filter-in-setanalysis/m-p/113935#M17632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks for the hint. I could solve it now within the script in a similar way like the 'AsOfTable' concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 07:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-loose-table-field-as-filter-in-setanalysis/m-p/113935#M17632</guid>
      <dc:creator>p_noindl</dc:creator>
      <dc:date>2018-09-12T07:19:43Z</dc:date>
    </item>
  </channel>
</rss>

