<?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 Pass selections to data island table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819751#M1213348</link>
    <description>&lt;P&gt;Hi Geeks&lt;/P&gt;&lt;P&gt;Need your help. I want to pass the selections in the dashboard to a data island table.&lt;/P&gt;&lt;P&gt;For eg, I have Region, Product and Year to pass to data island table.&lt;/P&gt;&lt;P&gt;I am doing something like this. Sum({&amp;lt;RegionIsland = {GetFieldSelections(Region)}, ProductIsland = {GetFieldSelections(Product)}, Year = {GetFieldSelections(Year)}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;This works fine if all the 3 selections are made. But I want to include the dynamic comma(,) in between the three selections. If only one field has selections, I can use an if condition and make the set analysis null but the comma is the problem.&lt;/P&gt;&lt;P&gt;So, in brief Sum(a,b,c) and sometimes only a is available, sometimes only b, a and b, a and b and c. I want to derive this through variables.&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jul 2021 10:57:47 GMT</pubDate>
    <dc:creator>QlikDev001</dc:creator>
    <dc:date>2021-07-05T10:57:47Z</dc:date>
    <item>
      <title>Pass selections to data island table</title>
      <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819751#M1213348</link>
      <description>&lt;P&gt;Hi Geeks&lt;/P&gt;&lt;P&gt;Need your help. I want to pass the selections in the dashboard to a data island table.&lt;/P&gt;&lt;P&gt;For eg, I have Region, Product and Year to pass to data island table.&lt;/P&gt;&lt;P&gt;I am doing something like this. Sum({&amp;lt;RegionIsland = {GetFieldSelections(Region)}, ProductIsland = {GetFieldSelections(Product)}, Year = {GetFieldSelections(Year)}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;This works fine if all the 3 selections are made. But I want to include the dynamic comma(,) in between the three selections. If only one field has selections, I can use an if condition and make the set analysis null but the comma is the problem.&lt;/P&gt;&lt;P&gt;So, in brief Sum(a,b,c) and sometimes only a is available, sometimes only b, a and b, a and b and c. I want to derive this through variables.&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 10:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819751#M1213348</guid>
      <dc:creator>QlikDev001</dc:creator>
      <dc:date>2021-07-05T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pass selections to data island table</title>
      <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819876#M1213358</link>
      <description>&lt;P&gt;Hi QlikDev&lt;/P&gt;&lt;P&gt;Basically, for each category you need a comma delimited list of selected items. These will also need to be separated by double quotes.&lt;/P&gt;&lt;P&gt;EG&amp;nbsp; &lt;EM&gt;RegionIsland = {"a","b","c"}&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Where a, b, and c are the regions selected in the main data model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Concat() function can achieve this. This is a string function which appends all the available values in a list, into a single string. The second parameter is the delimiter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a variable called vRegionSelected and set the value to&lt;/P&gt;&lt;P&gt;=concat(distinct '"' &amp;amp; Region &amp;amp; '"' , ',' )&lt;/P&gt;&lt;P&gt;This will produce the string that looks like&amp;nbsp;&lt;EM&gt;"a","b","c"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The variable can then be referenced in set analysis using the $() operator, which turns it into code, implanting the string into your expression.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;RegionIsland = {$(vRegionSelected)},....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Does this work?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 15:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819876#M1213358</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-05T15:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pass selections to data island table</title>
      <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819878#M1213359</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for the response. For single field, its ok. I have 3 fields and I should pass 3 fields selections. And its not always 3 fields. Sometimes only 1 field selection, sometimes 2 and sometimes all the 3 field selections might happen. So, I want this to be dynamic which will work for 1 or 2 or 3 field selections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 16:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819878#M1213359</guid>
      <dc:creator>QlikDev001</dc:creator>
      <dc:date>2021-07-05T16:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pass selections to data island table</title>
      <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819888#M1213360</link>
      <description>&lt;P&gt;You can either create one variable for each field that you wish to pass into set analysis. The Concat() function takes the currently possible values and doesn't matter if they are selected or not. Just keep adding variables per field.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;RegionIsland = {$(vRegionSelected)},ProductIsland={$(vProductSelected)}....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you do not have anything selected it will pass all values - which you may or may not want.&lt;/P&gt;&lt;P&gt;I've just remembered a more concise way of doing this.&lt;/P&gt;&lt;P&gt;you can use "$::[field]" instead&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;RegionIsland = $::Region, ProductIsland = $::Product, YearIsland =$::Year&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 16:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819888#M1213360</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-05T16:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pass selections to data island table</title>
      <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819898#M1213361</link>
      <description>&lt;P&gt;Please try this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;RegionIsland = P(Region), ProductIsland = P(Product), Year = P(Year)&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 17:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819898#M1213361</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2021-07-05T17:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pass selections to data island table</title>
      <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819933#M1213364</link>
      <description>&lt;P&gt;Thanks Clever_Anjos&lt;/P&gt;&lt;P&gt;The problem here is if my Island table has more values than the main table, and if nothing is selected, then it gets the Sales data only for the values available in the main field. If nothing is selected, I want all the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 00:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819933#M1213364</guid>
      <dc:creator>QlikDev001</dc:creator>
      <dc:date>2021-07-06T00:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pass selections to data island table</title>
      <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819935#M1213366</link>
      <description>&lt;P&gt;Hey Thanks.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;RegionIsland = {$(vRegionSelected)},ProductIsland={$(vProductSelected)}...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This works all perfect except that if a Region that is selected in the main table doesn't have value in the data island, it is finally showing 0 even though the Product and Year selected are available. Just one step away &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 00:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819935#M1213366</guid>
      <dc:creator>QlikDev001</dc:creator>
      <dc:date>2021-07-06T00:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pass selections to data island table</title>
      <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819939#M1213368</link>
      <description>&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;RegionIsland = {$(vRegionSelected)},ProductIsland={$(vProductSelected)}....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfect. Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 01:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819939#M1213368</guid>
      <dc:creator>QlikDev001</dc:creator>
      <dc:date>2021-07-06T01:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pass selections to data island table</title>
      <link>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819993#M1213378</link>
      <description>&lt;P&gt;Are you still having an issue with the region selected not being in the other table?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 07:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pass-selections-to-data-island-table/m-p/1819993#M1213378</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-06T07:55:11Z</dc:date>
    </item>
  </channel>
</rss>

