<?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: Conditional Dimension or Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605354#M1109986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Product='B' and Stage2=2,0,Stage2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Stage2 is an expression label.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 17:17:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-05T17:17:06Z</dc:date>
    <item>
      <title>Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605343#M1109973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show Product B &amp;amp; Stage 2 value 0 instead of 2. How should I do it in dimension or expression please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl23" height="17" style="border: black 0px solid;"&gt;Product&lt;/TD&gt;&lt;TD class="xl23" style="border: black 0px solid;"&gt;Stage 1&lt;/TD&gt;&lt;TD class="xl23" style="border: black 0px solid;"&gt;&lt;H6&gt;&lt;SPAN style="color: #ff0000;"&gt;Stage 2&lt;/SPAN&gt;&lt;/H6&gt;&lt;/TD&gt;&lt;TD class="xl23" style="border: black 0px solid;"&gt;Stage 3&lt;/TD&gt;&lt;TD class="xl23" style="border: black 0px solid;"&gt;Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" style="border: black 0px solid;"&gt;A&lt;/TD&gt;&lt;TD class="xl22" style="border: black 0px solid;"&gt;5&lt;/TD&gt;&lt;TD class="xl24" style="border: black 0px solid;"&gt;&lt;SPAN style="color: #000000;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border: black 0px solid;"&gt;4&lt;/TD&gt;&lt;TD class="xl23" style="border: black 0px solid;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" style="border: black 0px solid;"&gt;&lt;H6&gt;&lt;SPAN style="color: #ff0000;"&gt;B&lt;/SPAN&gt;&lt;/H6&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border: black 0px solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="border: black 0px solid;"&gt;&lt;H6&gt;&lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt;&lt;/H6&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border: black 0px solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl23" style="border: black 0px solid;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" style="border: black 0px solid;"&gt;C&lt;/TD&gt;&lt;TD class="xl22" style="border: black 0px solid;"&gt;7&lt;/TD&gt;&lt;TD class="xl22" style="border: black 0px solid;"&gt;8&lt;/TD&gt;&lt;TD class="xl22" style="border: black 0px solid;"&gt;6&lt;/TD&gt;&lt;TD class="xl23" style="border: black 0px solid;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605343#M1109973</guid>
      <dc:creator />
      <dc:date>2014-03-05T15:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605344#M1109975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in expression instead of sum([Stage 2]), add an if statement...something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='B',0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Stage 2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 16:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605344#M1109975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-05T16:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605345#M1109977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but it did not work. I want to show zero only if Product = B and Stage 2. The rest should as is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 16:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605345#M1109977</guid>
      <dc:creator />
      <dc:date>2014-03-05T16:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605346#M1109978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As I understand you want to put zero instead of any value, when you have product=B, so you could use this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(Product='B',0,sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Stage 2])&lt;/SPAN&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 16:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605346#M1109978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-05T16:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605347#M1109979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Shoaib,&lt;/P&gt;&lt;P&gt;Is Product, Stage1,Stage2,Stage3 all fields in your data model or &lt;/P&gt;&lt;P&gt;Product is a Dim and the rest are expressions?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 16:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605347#M1109979</guid>
      <dc:creator />
      <dc:date>2014-03-05T16:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605348#M1109980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Product is dimesion and the rest expression labels&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605348#M1109980</guid>
      <dc:creator />
      <dc:date>2014-03-05T17:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605349#M1109981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From where do you get the value of Stage 2 if product is different than B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605349#M1109981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-05T17:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605350#M1109982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so Stage 2 is actually a label for the expression. that's why, the expression i pasted as is will not work for you. use the actual expression instead of sum([Stage 2]) in if statement i pasted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this should work -&lt;/P&gt;&lt;P&gt;if(Product='B',0, actual &lt;EM&gt;expression for Stage 2 here&lt;/EM&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605350#M1109982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-05T17:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605351#M1109983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached with an example of how to do it. There are two tables one is normal and the other is with your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605351#M1109983</guid>
      <dc:creator />
      <dc:date>2014-03-05T17:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605352#M1109984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically the real example is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An application can have two products. e.g. Loan and Overdraft. The Follow Up Docs and Returned Docs should be blank in case of Overdraft but because of an application has loan and overdraft then the code calculates same time of loan for overdraft as attached. Can I restrict the code to only calculate if it is Loan or Masterplan under Follow Up Docs and Returned Docs.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sum({&amp;lt;Tray={'NAPS Follow Up Docs'}&amp;gt;}fabs(interval(((Networkdays(Date(pre,'DD/MM/YYYY hh:mm:ss'),Date(CMP_Date,'DD/MM/YYYY hh:mm:ss')) -2)*'$(vWorkDay)')&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;if(frac(date(pre))&amp;lt;num('$(vQuitTime)'),if(frac(date(pre))&amp;gt;num('$(vStartTime)'),Date#(date(floor(pre),'DD/MM/YYYY') &amp;amp; '$(vQuitTime)' ,'DD/MM/YYYYhh:mm:ss')-Date(pre,'DD/MM/YYYY hh:mm:ss'),Date#(date(floor(pre),'DD/MM/YYYY') &amp;amp; '$(vQuitTime)' ,'DD/MM/YYYYhh:mm:ss')-Date#(date(floor(pre),'DD/MM/YYYY') &amp;amp; '$(vStartTime)' ,'DD/MM/YYYYhh:mm:ss')),0)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;if(frac(date(CMP_Date))&amp;gt;num('$(vStartTime)'),if(frac(date(CMP_Date))&amp;lt;num('$(vQuitTime)'),(Date(CMP_Date,'DD/MM/YYYY hh:mm:ss')-Date#(date(floor(CMP_Date),'DD/MM/YYYY') &amp;amp; '$(vStartTime)','DD/MM/YYYYhh:mm:ss')),Date#(date(floor(CMP_Date),'DD/MM/YYYY') &amp;amp; '$(vQuitTime)','DD/MM/YYYYhh:mm:ss')-Date#(date(floor(CMP_Date),'DD/MM/YYYY') &amp;amp; '$(vStartTime)','DD/MM/YYYYhh:mm:ss')),0), 'hh:mm:ss'))*24)/count(distinct Application_Id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605352#M1109984</guid>
      <dc:creator />
      <dc:date>2014-03-05T17:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605353#M1109985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ajay thanks but i can't download as I am restricted and using personal edition &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605353#M1109985</guid>
      <dc:creator />
      <dc:date>2014-03-05T17:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605354#M1109986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Product='B' and Stage2=2,0,Stage2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Stage2 is an expression label.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605354#M1109986</guid>
      <dc:creator />
      <dc:date>2014-03-05T17:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605355#M1109987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I understand you have an expression in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Follow Up Docs and Returned Docs&lt;/SPAN&gt;, that you want to have it as 0 if product=B, so why don't you keep your expression as it's and multiply it by *only(if(Product='B',0,1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605355#M1109987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-05T17:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Dimension or Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605356#M1109988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;As I understand you have an expression in &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Follow Up Docs and Returned Docs&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, that you want to have it as 0 if product=B, so why don't you keep your expression as it's and multiply it by *only(if(Product='B',0,1))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Dimension-or-Expression/m-p/605356#M1109988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-05T17:36:23Z</dc:date>
    </item>
  </channel>
</rss>

