<?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: Use calculated dimension value in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Use-calculated-dimension-value-in-set-analysis/m-p/1597685#M44191</link>
    <description>&lt;P&gt;Apparently, one may apply a set analysis filter based on a calculation by using the calculation in a search mask:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Customer Code]={"=only(HugeCalculatedDimensionFormula)=Value"}&lt;/P&gt;&lt;P&gt;Since the formula was already needing a dollar sign evaluation level, each double quote inside HugeCalculatedDimensionFormula has to be REPLACE()d with two double quotes in order to be escaped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 12:53:38 GMT</pubDate>
    <dc:creator>gmenoutis</dc:creator>
    <dc:date>2019-07-01T12:53:38Z</dc:date>
    <item>
      <title>Use calculated dimension value in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Use-calculated-dimension-value-in-set-analysis/m-p/1597608#M44186</link>
      <description>&lt;P&gt;I need to calculate the following metric: From the clients with [A/L/D/P]={Active}, find the percentage where&amp;nbsp;[Overall Consent]*={Given}. This resulted in the following correct formula:&lt;/P&gt;&lt;P&gt;num&lt;BR /&gt;(&lt;BR /&gt;count({&amp;lt;[A/L/D/P]*={Active},[Overall Consent]*={Given}&amp;gt;}distinct [Customer Code])&lt;BR /&gt;/count({&amp;lt;[A/L/D/P]*={Active}&amp;gt;}distinct [Customer Code])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;However, I am now developing a new formula, where A/L/D/P is dynamically calculated based on a user's field inputs (changing rolling time). I have created a calculated dimension using aggr on [Customer Code], and it is rather complex. How can I now use a set analysis on the value of the calculated dimension, which is as I undeerstand not a part of the data model?&lt;/P&gt;&lt;P&gt;The new [A/L/D/P R] calculated dimension has the following formula:&lt;/P&gt;&lt;P&gt;$(='pick(&lt;BR /&gt;aggr(&lt;BR /&gt;rangemin(&lt;BR /&gt;8*if(only([Registration Date])&amp;lt;=max(total [Rolling Date]),0,1)&lt;BR /&gt;+3*(1+sign(count({&amp;lt;[Transaction Date]={"&amp;gt;' &amp;amp; addmonths(max(total [Rolling Date]),-12) &amp;amp; '&amp;lt;=' &amp;amp; max(total [Rolling Date]) &amp;amp; '"}&amp;gt;} distinct [Transaction ID])-1))&lt;BR /&gt;+pick(&lt;BR /&gt;1&lt;BR /&gt;+2*if(count({&amp;lt;[Transaction Date]={"&amp;gt;' &amp;amp; addmonths(max(total [Rolling Date]),-24) &amp;amp; '&amp;lt;=' &amp;amp; addmonths(max(total [Rolling Date]),-12) &amp;amp; '"}&amp;gt;} distinct [Transaction ID])&amp;gt;=1,1,0)&lt;BR /&gt;+ if(count({&amp;lt;[Transaction Date]={"&amp;lt;=' &amp;amp; addmonths(max(total [Rolling Date]),-24) &amp;amp; '"}&amp;gt;} distinct [Transaction ID])&amp;gt;=1,1,0)&lt;BR /&gt;,0,1,2,2)&lt;BR /&gt;+1+sum(0)&lt;BR /&gt;,8&lt;BR /&gt;)&lt;BR /&gt;,[Customer Code]&lt;BR /&gt;)&lt;BR /&gt;,''Prospect'',''Dormant'',''Lapsed'',''Active'',''Active'',''Active'',''Active'',null())')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-calculated-dimension-value-in-set-analysis/m-p/1597608#M44186</guid>
      <dc:creator>gmenoutis</dc:creator>
      <dc:date>2024-11-16T05:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use calculated dimension value in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Use-calculated-dimension-value-in-set-analysis/m-p/1597685#M44191</link>
      <description>&lt;P&gt;Apparently, one may apply a set analysis filter based on a calculation by using the calculation in a search mask:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Customer Code]={"=only(HugeCalculatedDimensionFormula)=Value"}&lt;/P&gt;&lt;P&gt;Since the formula was already needing a dollar sign evaluation level, each double quote inside HugeCalculatedDimensionFormula has to be REPLACE()d with two double quotes in order to be escaped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 12:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-calculated-dimension-value-in-set-analysis/m-p/1597685#M44191</guid>
      <dc:creator>gmenoutis</dc:creator>
      <dc:date>2019-07-01T12:53:38Z</dc:date>
    </item>
  </channel>
</rss>

