<?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: Using Getfieldselection need to select multiple values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Getfieldselection-need-to-select-multiple-values/m-p/1662630#M456031</link>
    <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Condition as well as Pick and Match function are working, Both functions are working. I go with Pick and Match function&lt;/P&gt;&lt;P&gt;Thank you again&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jan 2020 14:25:09 GMT</pubDate>
    <dc:creator>VenkateshYarra</dc:creator>
    <dc:date>2020-01-04T14:25:09Z</dc:date>
    <item>
      <title>Using Getfieldselection need to select multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Getfieldselection-need-to-select-multiple-values/m-p/1662090#M456028</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;Wish you a very happy new year to all..&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have two tables, where i need to calculate distinct values of each fields in each table.&amp;nbsp; ( All fields are same in both tables)&lt;/P&gt;&lt;P&gt;So i created one Inline Table using all fields for selection purpose. Below are the Image of Inline Table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture12.PNG" style="width: 190px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26275iAC4D642EC8F1E7F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture12.PNG" alt="Capture12.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;vFields ='[Quotes.'&amp;amp;GetFieldSelections(Inline_Fields)&amp;amp;']'&lt;/P&gt;&lt;P&gt;Then in the expression i am using he below expression to get the results&lt;/P&gt;&lt;P&gt;=SUM(Aggr(Count(DISTINCT $(vFields)),$(vFields)))&lt;/P&gt;&lt;P&gt;Till here it is working fine. If i select it is show the value. But when user select multiple values/Fields in Inline table how to show the values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;vFields1&amp;nbsp; ='[Quotes.'&amp;amp; concat (distinct Inline_Fields,']'&amp;amp;','&amp;amp;'[Quotes.')&amp;amp;']'&lt;/P&gt;&lt;P&gt;But this is not working for me.&lt;/P&gt;&lt;P&gt;Can you any help me to solve this issue.&lt;/P&gt;&lt;P&gt;I need to get multiple values if i select multiple fields in Inline table. Like below image. Here all quote values are showing zero.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture13.PNG" style="width: 484px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26278iEBA8EE4FEDF1769E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture13.PNG" alt="Capture13.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kindly Ignore the Pricing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Getfieldselection-need-to-select-multiple-values/m-p/1662090#M456028</guid>
      <dc:creator>VenkateshYarra</dc:creator>
      <dc:date>2024-11-16T01:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Getfieldselection need to select multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Getfieldselection-need-to-select-multiple-values/m-p/1662477#M456029</link>
      <description>&lt;P&gt;This is very tricky as you cannot use the value of a specific dimension as an input to another aggregation; unless you use a series of nested if statements; this is the formula to go in your table to replace the sum/aggr you have in there; also, you don't need extra variables:&lt;/P&gt;&lt;P&gt;=if(Inline_Fields = 'Active Flag',count(distinct [Quotes.Active Flag]),&lt;BR /&gt;if(Inline_Fields = 'Approval First Date',count(distinct [Quotes.Approval First Date]),&lt;BR /&gt;if(Inline_Fields = 'Approval Last Date',count(distinct [Quotes.Approval Last Date]),&lt;BR /&gt;if(Inline_Fields = 'Approval Status',count(distinct [Quotes.Approval Status]),&lt;BR /&gt;if(Inline_Fields = 'ID',count(distinct [Quotes.Active Flag]),'ID')&lt;BR /&gt;))))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since the set of dimensions you are calculating the distinct values for is fixed I believe this is a viable solution; you just need to write the nested if statements once and then you are sorted&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 14:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Getfieldselection-need-to-select-multiple-values/m-p/1662477#M456029</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-01-03T14:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Getfieldselection need to select multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Getfieldselection-need-to-select-multiple-values/m-p/1662480#M456030</link>
      <description>&lt;P&gt;A pick(match()) would be a better idea. always try to avoid using nested if statements.(or if statements alltogether in the frontend)&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 14:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Getfieldselection-need-to-select-multiple-values/m-p/1662480#M456030</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2020-01-03T14:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Getfieldselection need to select multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Getfieldselection-need-to-select-multiple-values/m-p/1662630#M456031</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Condition as well as Pick and Match function are working, Both functions are working. I go with Pick and Match function&lt;/P&gt;&lt;P&gt;Thank you again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 14:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Getfieldselection-need-to-select-multiple-values/m-p/1662630#M456031</guid>
      <dc:creator>VenkateshYarra</dc:creator>
      <dc:date>2020-01-04T14:25:09Z</dc:date>
    </item>
  </channel>
</rss>

