<?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 &amp;quot;Hidden&amp;quot;/Conditional Expressions in calculation - possible? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-quot-Hidden-quot-Conditional-Expressions-in-calculation/m-p/940794#M324465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the conditional expression on expression tab, no. It will prevent the expression from even being calculated, hence you can't use the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a straight table, you can however use a conditional hide on presentation tab. Expression will be calculated and can be referenced, but not be shown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Oct 2015 17:55:53 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-10-21T17:55:53Z</dc:date>
    <item>
      <title>Use "Hidden"/Conditional Expressions in calculation - possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-quot-Hidden-quot-Conditional-Expressions-in-calculation/m-p/940793#M324464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a User Definable application where they can choose the dimensions and then choose the facts (sales/margin/%) they want to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a conditional on the facts expressions to show or not show the data &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;=SubStringCount(Concat(FactID, '|'), 0)&lt;/SPAN&gt; =&amp;gt; Sales&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;=SubStringCount(Concat(FactID, '|'), 1)&lt;/SPAN&gt; =&amp;gt; Margin&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;=SubStringCount(Concat(FactID, '|'), 2)&lt;/SPAN&gt; =&amp;gt; Margin Pct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is in this example:&lt;/P&gt;&lt;P&gt; - When Margin or Sales is hidden (conditional) Margin Pct will not calculate.&amp;nbsp;&amp;nbsp; Is there any way to conditionally hide one of the Expressions, but still use the Expression column in the calculation - Margin Pct in this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Formulas&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;= &lt;SPAN style="color: #3366ff;"&gt;sum({ $&amp;lt;&amp;nbsp; SalesType = {'SLS'}, SalesCommissionFlag={'Y'} &amp;gt; } Invoice_SalesAmount*(Percent/100) ) + sum({ $&amp;lt;&amp;nbsp; SalesType = {'SLS'} &amp;gt; } SM_SalesTotal )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Margin&lt;/STRONG&gt; = &lt;SPAN style="color: #3366ff;"&gt;sum({ $&amp;lt;&amp;nbsp; SalesType = {'SLS'}, SalesCommissionFlag={'Y'} &amp;gt; } Invoice_Margin*(Percent/100) ) + sum({ $&amp;lt;&amp;nbsp; SalesType = {'SLS'} &amp;gt; } SM_MarginTotal )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Margin Pct&lt;/STRONG&gt; =&lt;SPAN style="color: #3366ff;"&gt; [Margin]/[Sales]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For margin Pct I do not want to have to always do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="color: #3366ff;"&gt;sum({ $&amp;lt;&amp;nbsp; SalesType = {'SLS'}, SalesCommissionFlag={'Y'} &amp;gt; } Invoice_Margin*(Percent/100) ) + sum({ $&amp;lt;&amp;nbsp; SalesType = {'SLS'} &amp;gt; } SM_MarginTotal ) ) / ( &lt;SPAN style="color: #3366ff;"&gt;sum({ $&amp;lt;&amp;nbsp; SalesType = {'SLS'}, SalesCommissionFlag={'Y'} &amp;gt; } Invoice_SalesAmount*(Percent/100) ) + sum({ $&amp;lt;&amp;nbsp; SalesType = {'SLS'} &amp;gt; } SM_SalesTotal )) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 17:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-quot-Hidden-quot-Conditional-Expressions-in-calculation/m-p/940793#M324464</guid>
      <dc:creator />
      <dc:date>2015-10-21T17:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use "Hidden"/Conditional Expressions in calculation - possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Use-quot-Hidden-quot-Conditional-Expressions-in-calculation/m-p/940794#M324465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using the conditional expression on expression tab, no. It will prevent the expression from even being calculated, hence you can't use the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a straight table, you can however use a conditional hide on presentation tab. Expression will be calculated and can be referenced, but not be shown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 17:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-quot-Hidden-quot-Conditional-Expressions-in-calculation/m-p/940794#M324465</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-21T17:55:53Z</dc:date>
    </item>
  </channel>
</rss>

