<?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 and expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-dimension-and-expression/m-p/393482#M568631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Playing around with it and searching the forums a second time I managed to find a working solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fist expression with label "Orders placed by COMP":&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;USERID={'COMP'}}&amp;gt;}DISTINCT ORDER_NO)&amp;gt;1, count({$&amp;lt;USERID={'COMP'}}&amp;gt;}DISTINCT ORDER_NO), null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second expression:&lt;/P&gt;&lt;P&gt;if(Column(1)&amp;lt;&amp;gt;null(), count({$&amp;lt;USERID-={'COMP'}}&amp;gt;}DISTINCT ORDER_NO), null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem was that my second condition before was&lt;/P&gt;&lt;P&gt;if(Column(1)=null()....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it seems it doesn't compare it properly so this is a workaround. Another improvement would be to avoid the repetition of the first expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps anyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 10:09:38 GMT</pubDate>
    <dc:creator>marcelo_7</dc:creator>
    <dc:date>2012-10-09T10:09:38Z</dc:date>
    <item>
      <title>Conditional dimension and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension-and-expression/m-p/393481#M568630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have orders placed to suppliers and are destined to STOREs. Each order recieves an ORDER_NO. Orders can either be placed by empoyees with different USERID or automatically. Orders that are automatically placed by the computer have the USERID COMP for simplicity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have managed to create a straight table but I would like to reduce it and I'm asking for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The straight table has the dimensions SUPPLIER and STORE&lt;/P&gt;&lt;P&gt;I have two expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Show orders placed by the computer&lt;/P&gt;&lt;P&gt;count({$&amp;lt;USERID={'COMP'}}&amp;gt;}DISTINCT ORDER_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Show orders placed by employees&lt;/P&gt;&lt;P&gt;count({$&amp;lt;USERID-={'COMP'}}&amp;gt;}DISTINCT ORDER_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some connections between suppliers and stores where the computer hasn't placed any orders and where employees have placed orders.&lt;/P&gt;&lt;P&gt;I would like to limit the straight table to show only the suppliers and stores where there is at least one order placed by the computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changing making a calculated dimension out of STORE but without success. I also tried to remove the dimension STORE and make it as a condition but it didn't work either. Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 09:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension-and-expression/m-p/393481#M568630</guid>
      <dc:creator>marcelo_7</dc:creator>
      <dc:date>2012-10-09T09:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dimension and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension-and-expression/m-p/393482#M568631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Playing around with it and searching the forums a second time I managed to find a working solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fist expression with label "Orders placed by COMP":&lt;/P&gt;&lt;P&gt;if(count({$&amp;lt;USERID={'COMP'}}&amp;gt;}DISTINCT ORDER_NO)&amp;gt;1, count({$&amp;lt;USERID={'COMP'}}&amp;gt;}DISTINCT ORDER_NO), null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second expression:&lt;/P&gt;&lt;P&gt;if(Column(1)&amp;lt;&amp;gt;null(), count({$&amp;lt;USERID-={'COMP'}}&amp;gt;}DISTINCT ORDER_NO), null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem was that my second condition before was&lt;/P&gt;&lt;P&gt;if(Column(1)=null()....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it seems it doesn't compare it properly so this is a workaround. Another improvement would be to avoid the repetition of the first expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps anyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 10:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension-and-expression/m-p/393482#M568631</guid>
      <dc:creator>marcelo_7</dc:creator>
      <dc:date>2012-10-09T10:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dimension and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension-and-expression/m-p/393483#M568632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you just use a conditional on your show orders placed by employees:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if( &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count({$&amp;lt;USERID={'COMP'}}&amp;gt;}DISTINCT ORDER_NO),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count({$&amp;lt;USERID-={'COMP'}}&amp;gt;}DISTINCT ORDER_NO)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If suppress zero values option is checked in presentation tab, this should remove the lines where both expressio result in zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: &lt;/P&gt;&lt;P&gt;Just have seen that you found the solution already. Have fun!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 10:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension-and-expression/m-p/393483#M568632</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-09T10:14:04Z</dc:date>
    </item>
  </channel>
</rss>

