<?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: Distinct Help !! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573560#M213656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use below script...&lt;/P&gt;&lt;P&gt;=================================&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Region, Cust_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; West1, ABC&lt;/P&gt;&lt;P&gt;&amp;nbsp; West1, CBC&lt;/P&gt;&lt;P&gt;&amp;nbsp; West1, BCA&lt;/P&gt;&lt;P&gt;&amp;nbsp; North1, BCA&lt;/P&gt;&lt;P&gt;&amp;nbsp; North1, BZC&lt;/P&gt;&lt;P&gt;&amp;nbsp; South1, ABC&lt;/P&gt;&lt;P&gt;&amp;nbsp; South1, BBB&lt;/P&gt;&lt;P&gt;&amp;nbsp; South1, BBC&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Region,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Cust_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Cust_id = Previous(Cust_id), 0, 1) as Flag&lt;/P&gt;&lt;P&gt;Resident Temp&lt;/P&gt;&lt;P&gt;Order By Cust_id, Region;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;===========================&lt;/P&gt;&lt;P&gt;Create a straight table&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;SUM(Flag)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 10:05:13 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-03-28T10:05:13Z</dc:date>
    <item>
      <title>Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573551#M213647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help to get the below requirement.The data and out put as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="208"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Region&lt;/TD&gt;&lt;TD width="144"&gt;Cust_id&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;West1&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;West1&lt;/TD&gt;&lt;TD&gt;CBC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;West1&lt;/TD&gt;&lt;TD&gt;BCA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;North1&lt;/TD&gt;&lt;TD&gt;BCA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;North1&lt;/TD&gt;&lt;TD&gt;BZC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;South1&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;South1&lt;/TD&gt;&lt;TD&gt;BBB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;South1&lt;/TD&gt;&lt;TD&gt;BBC&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The output is like;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 281px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="129"&gt;Region(Dimension)&lt;/TD&gt;&lt;TD width="152"&gt;Count(distinct Cust_id)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right"&gt;&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;West1&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;North1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;South1&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Req:&lt;/P&gt;&lt;P&gt;The 6 is expression total in staright table.When we make the sum its showing the count as 8.But the requirement is we have to show the distinct cust_id's region wise.To do this we have to consider only count as 1 for the cust_ids available in multiple regions.E.g.BCA is available in both West1 and North1 so then we have to consider the count as 1 at any one of the region.The same logic is for ABC as well.I have to do the same in design level is an added advantage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if in case of clarity required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adv,&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573551#M213647</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-03-28T07:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573552#M213648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean to say the output you have given is wrong?&lt;/P&gt;&lt;P&gt;can you clarify with final required output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573552#M213648</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-28T07:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573553#M213649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for Quick Reply...The out put is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORMAT1:&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 height="20" style="border: black 0px solid;" width="129"&gt;Region(Dimension)&lt;/TD&gt;&lt;TD style="border: black 0px solid;" width="152"&gt;Count(distinct Cust_id)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" style="border: black 0px solid;"&gt;&lt;/TD&gt;&lt;TD style="border: black 0px solid;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: black 0px solid;"&gt;West1&lt;/TD&gt;&lt;TD align="right" style="border: black 0px solid;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: black 0px solid;"&gt;North1&lt;/TD&gt;&lt;TD align="right" style="border: black 0px solid;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: black 0px solid;"&gt;South1&lt;/TD&gt;&lt;TD align="right" style="border: black 0px solid;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3:ABC,CBA,BCA,&lt;/P&gt;&lt;P&gt;1:BZC&lt;/P&gt;&lt;P&gt;2:BBB,BBC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORMAT2:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: black 0px solid;" width="129"&gt;Region(Dimension)&lt;/TD&gt;&lt;TD style="border: black 0px solid;" width="152"&gt;Count(distinct Cust_id)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" style="border: black 0px solid;"&gt;&lt;/TD&gt;&lt;TD style="border: black 0px solid;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: black 0px solid;"&gt;West1&lt;/TD&gt;&lt;TD align="right" style="border: black 0px solid;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: black 0px solid;"&gt;North1&lt;/TD&gt;&lt;TD align="right" style="border: black 0px solid;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: black 0px solid;"&gt;South1&lt;/TD&gt;&lt;TD align="right" style="border: black 0px solid;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1:CBC&lt;/P&gt;&lt;P&gt;2:BCA,BZC&lt;/P&gt;&lt;P&gt;3:ABC,BBB,BBC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required output should be any one of the format.As per the req: mentioned above explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573553#M213649</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-03-28T07:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573554#M213650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in expression tab Total mode is there in that check the sum instead of Expression total&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573554#M213650</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2014-03-28T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573555#M213651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nizam...When am checking the sum its giving 8 which is not the required value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the&amp;nbsp; value as 6 when am checking the sum option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573555#M213651</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-03-28T07:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573556#M213652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dhanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have to re-asses your requirement and output formats you have given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In format-1 the table shows count is 3 for West1 and 1 in format-2.&amp;nbsp; Can you please explain what is the business rule for this calculation?&amp;nbsp; Once you have your business rules correct then you can build the application.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the example you have given, my understanding is that the customer is corporate customer and having operations in multiple regions.&amp;nbsp; Therefore the customer is to be identified with one region only.&amp;nbsp; In such a scenario you need to have your data with a flag identifying the customer with the primary region.&amp;nbsp; You will then be able achieve the results you are looking for.&amp;nbsp; Example is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Distinct Count.png" class="jive-image" src="/legacyfs/online/56094_Distinct Count.png" style="width: 620px; height: 242px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 09:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573556#M213652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-28T09:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573557#M213653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sudheer...The business rule to get the mentioned value is we have to count the distinct custid's region wise.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Out of 2 formats we have to show any one of the format.The formats results are based on Distinct custid's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say in format1;&lt;/P&gt;&lt;P&gt;West1--3---ABC,CBA,BCA&lt;/P&gt;&lt;P&gt;North1-1--BZC(Here actually North1 is having BCA and BZC.But the BCA custid has already considered in West1 so am not considering in North1)&lt;/P&gt;&lt;P&gt;South1--2--BBB,BBC(Here actually South1is having BBB,BBC,ABC.But the ABC custid has already considered in West1 so am not considering in South1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same type of logic i have applied in format2 also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you get clear idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 09:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573557#M213653</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-03-28T09:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573558#M213654</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;Total 6 is expected and that is what you get right?&lt;/P&gt;&lt;P&gt;BCA is available in two region and you want to display only one region in the chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you are expecting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 09:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573558#M213654</guid>
      <dc:creator />
      <dc:date>2014-03-28T09:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573559#M213655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Prabhu....!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 09:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573559#M213655</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-03-28T09:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573560#M213656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use below script...&lt;/P&gt;&lt;P&gt;=================================&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Region, Cust_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; West1, ABC&lt;/P&gt;&lt;P&gt;&amp;nbsp; West1, CBC&lt;/P&gt;&lt;P&gt;&amp;nbsp; West1, BCA&lt;/P&gt;&lt;P&gt;&amp;nbsp; North1, BCA&lt;/P&gt;&lt;P&gt;&amp;nbsp; North1, BZC&lt;/P&gt;&lt;P&gt;&amp;nbsp; South1, ABC&lt;/P&gt;&lt;P&gt;&amp;nbsp; South1, BBB&lt;/P&gt;&lt;P&gt;&amp;nbsp; South1, BBC&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Region,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Cust_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Cust_id = Previous(Cust_id), 0, 1) as Flag&lt;/P&gt;&lt;P&gt;Resident Temp&lt;/P&gt;&lt;P&gt;Order By Cust_id, Region;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;===========================&lt;/P&gt;&lt;P&gt;Create a straight table&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;SUM(Flag)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 10:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573560#M213656</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-28T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573561#M213657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manish.It seems working in backend and is any chance to apply the same in design level because of the Region and cust_id fields are coming from diff tables with the combination big data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 05:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573561#M213657</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-03-29T05:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Help !!</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573562#M213658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will try and come back to you on this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 06:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Help/m-p/573562#M213658</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-29T06:33:34Z</dc:date>
    </item>
  </channel>
</rss>

