<?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: Calculated Dimension issue in Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39090#M6600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are handling this in your expression, why do you need a calculated dimension? Why can't you just use Current_Cust_Number as your dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2018 13:30:40 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-05-31T13:30:40Z</dc:date>
    <item>
      <title>Calculated Dimension issue in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39089#M6599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; I have a straight table with multiple dimensions and a single expression, here I am trying to create a calculated dimension (Cust Number) to filter the data based on filter selection (Vehicle_Use). What I am trying to get is when we select a value (here LEASE) from Vehicle_Use filter then the straight table data along with the Cust Number filed should be filtered with two customer numbers only i.e. 699999,699998 and if we clear the filter which means if we don't select anything from the same filter it should display all the Cust Numbers in the straight table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have created a calculated dimension using below code to get what am looking, but its not working as expected, so i hope some one can help with below calculated dimension expression.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Calculated Dimension:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Aggr(Only({&amp;lt;Vehicle_Use={'LEASE'},Current_Cust_Number={'699999','699998'}&amp;gt;} Current_Cust_Number), Current_Cust_Number)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;if(Vehicle_Use = 'LEASE',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000;"&gt;count(DISTINCT{&amp;lt;Current_Cust_Number ={'699999','699998'}&amp;gt;}Unit_Number),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;count(DISTINCT Unit_Number))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 13:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39089#M6599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-31T13:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension issue in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39090#M6600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are handling this in your expression, why do you need a calculated dimension? Why can't you just use Current_Cust_Number as your dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 13:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39090#M6600</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-31T13:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension issue in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39091#M6601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What is happening with the above expression and Current_Cust_Numeber as dimension is,&amp;nbsp; it is working fine when we select Lease from the filters but when we clear the filter straight table row count is not matching with my source system count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tired to use a above cal dimension which is also not giving expected result and i have tried below expression as well, any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(GetFieldSelections(Vehicle_Use='LEASE'), Count(DISTINCT{&amp;lt;Current_Cust_Number ={'699999','699998'}&amp;gt;}Unit_Number),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT Unit_Number))&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;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 13:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39091#M6601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-31T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension issue in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39092#M6602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difficult to know what might be going on... are you able to share a sample where we can see this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 15:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39092#M6602</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-31T15:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension issue in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39093#M6603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ Please find the attached sample file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 18:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39093#M6603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-31T18:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension issue in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39094#M6604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The if statement in your chart was wrong... try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(GetFieldSelections(Vehicle_Use&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt; ='LEASE'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 19:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-issue-in-Straight-Table/m-p/39094#M6604</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-31T19:34:39Z</dc:date>
    </item>
  </channel>
</rss>

