<?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: Need to reference a calculated dimension (aggr) in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132891#M372267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes!&amp;nbsp;&amp;nbsp; Thank you.&amp;nbsp; Was completely overlooking 'total' - very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2016 15:19:48 GMT</pubDate>
    <dc:creator>sarahallen1</dc:creator>
    <dc:date>2016-06-28T15:19:48Z</dc:date>
    <item>
      <title>Need to reference a calculated dimension (aggr) in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132889#M372265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached an example QVW showing a problem I'm working on.&amp;nbsp; Please read the notes in the text boxes to see what my problem is and what I've tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a 'data availability check' type of thing, which is used by other expressions to give warnings.&amp;nbsp; I tried to put the check as an expression but it doesn't work as it needs to ignore one of the dimensions (my set analysis here doesn't work as expected with &amp;lt;FieldToIgnore=&amp;gt; because I think it's in the dimension).&amp;nbsp; But then when it's a calculated dimension instead with aggr, I can't refer to it in the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that putting the check field or something in the script would be recommended but my data model is a lot more complicated than what I've put in this example (sorry I can't share the real example for privacy reasons) and I'd really like to achieve it in the front end if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 14:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132889#M372265</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2016-06-28T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to reference a calculated dimension (aggr) in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132890#M372266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to get this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129431_Capture.PNG" style="height: 202px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if([Change in Units]=0,null(), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; // using 'suppress zeroes' to hide rows where there genuinely weren't any transactions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; // this if statement prevents the data check from giving a value which would stop the suppression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( count(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;RegisterType, Holder&amp;gt;&lt;/SPAN&gt; {$&amp;lt;Holder=,Date={'$(=Date_End)'}&amp;gt;}Quantity)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; * count(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;RegisterType, Holder&amp;gt;&lt;/SPAN&gt; {$&amp;lt;Holder=,Date={'$(=Date_Start)'}&amp;gt;}Quantity)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; =0 // if either is zero this will return zero (i.e. if there is missing data at the start or end date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,'missing data',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'data available') &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132890#M372266</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-28T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need to reference a calculated dimension (aggr) in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132891#M372267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes!&amp;nbsp;&amp;nbsp; Thank you.&amp;nbsp; Was completely overlooking 'total' - very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132891#M372267</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2016-06-28T15:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to reference a calculated dimension (aggr) in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132892#M372268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this resolve all your issues or we still have issues left? The reason I ask is because I was not sure if there were two issues or 1 issue to begin with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132892#M372268</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-28T15:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to reference a calculated dimension (aggr) in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132893#M372269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This resolves my issue, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a question of whether we could reference calculated dimensions (which I don't think we can), but I don't need to use calculated dimensions now as can do it all in expressions.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132893#M372269</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2016-06-28T15:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to reference a calculated dimension (aggr) in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132894#M372270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Please close this thread down by marking correct answer if you are satisfied.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-reference-a-calculated-dimension-aggr-in-an-expression/m-p/1132894#M372270</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-28T15:27:06Z</dc:date>
    </item>
  </channel>
</rss>

