<?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: map sid to all rows. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378326#M802087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand the logic behing seeing 2,2,1,2... can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2017 14:48:37 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-13T14:48:37Z</dc:date>
    <item>
      <title>map sid to all rows.</title>
      <link>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378325#M802086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below dataset. I am counting the number of distinct SID's for each Location &amp;amp; Country combination.&lt;/P&gt;&lt;P&gt;My requirement is whenever the Location of any SID's is xx, it should be assigned to all the rows in the Data table. I mean in the bottom straight table the 2nd expression should show values as 2,2,1,2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *,Location &amp;amp; '|' &amp;amp; Country as Key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, Location, Country, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, lon, uk, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, york, uk, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, la, us, 200&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SID:&lt;/P&gt;&lt;P&gt;LOAD SID, Location &amp;amp; '|' &amp;amp; Country as Key&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SID, Location, Country&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, lon, uk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20, york, uk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;30, xx, &lt;SPAN style="color: #000000;"&gt;us&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183079_image.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378325#M802086</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: map sid to all rows.</title>
      <link>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378326#M802087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand the logic behing seeing 2,2,1,2... can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 14:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378326#M802087</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-13T14:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: map sid to all rows.</title>
      <link>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378327#M802088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did +1 to existing values in the straight table. Because when the SID with country xx is assigned to complete data in first table, the distinct count of sid goes up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 14:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378327#M802088</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2017-11-13T14:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: map sid to all rows.</title>
      <link>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378328#M802089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, when you did +1, did it work? I mean I am still not sure I understand but seems like +1 to your expression will give you what you want, no?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 15:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378328#M802089</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-13T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: map sid to all rows.</title>
      <link>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378329#M802092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is only 1 SID with location value as xx in table2, if there are more sid's with xx as location, they all should be assigned to each row in table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is, both tables should link with a proper key. So when a user click for example below values, the output of the expression count(distinct SID) should be 2, instead of 1(ie. SID-&amp;nbsp; 10 and 30)&lt;/P&gt;&lt;P&gt;Product, Location, Country&lt;/P&gt;&lt;P&gt;&amp;nbsp; A,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lon,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did cross join like below, but still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join(Data)&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;resident SID&lt;/P&gt;&lt;P&gt;Where Location = 'xx';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 15:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/map-sid-to-all-rows/m-p/1378329#M802092</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2017-11-13T15:13:43Z</dc:date>
    </item>
  </channel>
</rss>

