<?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: getfieldselection alternate state in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732680#M455473</link>
    <description>&lt;P&gt;hi Jwjackso,&lt;/P&gt;&lt;P&gt;when adding :&amp;nbsp;&lt;SPAN&gt;Concat({[State1]}Year,'|')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i receive&amp;nbsp;duplication of the year selected in state 1 , so the SubstringCount retrieves a huge number..&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 07:32:30 GMT</pubDate>
    <dc:creator>ilanbaruch</dc:creator>
    <dc:date>2020-08-03T07:32:30Z</dc:date>
    <item>
      <title>getfieldselection alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732156#M455471</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;in my model i have a pivot with 2 alternate state calculations&lt;/P&gt;&lt;P&gt;i want to add to the table calculation condition to only calculate if one of the alternate state dims are selected&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried it with the below condition :&lt;/P&gt;&lt;P&gt;getselectedcount(Year,[State1]) &amp;gt;0 or&amp;nbsp;getselectedcount(Year,[State2]) &amp;gt;0&lt;/P&gt;&lt;P&gt;but didnt succeed ,&amp;nbsp; any ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;advanced thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732156#M455471</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2024-11-16T00:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselection alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732177#M455472</link>
      <description>&lt;P&gt;If you are trying to determine if only 1 item is selected from the dimension, you can use a combination of&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/StringAggregationFunctions/concat.htm" target="_self"&gt;Concat&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/StringFunctions/SubStringCount.htm" target="_self"&gt;SubStringCount&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Suppose that your Year dimension only has 2018, 2019, and 2020.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If nothing was selected, using the following&amp;nbsp;Concat({[State1]}Year,'|') would return 2018|2019|2020.&amp;nbsp; If 2019 was selected, the statement would return 2019.&amp;nbsp; If 2019 and 2020 were selected, the statement would return 2019|2020.&amp;nbsp; Combining the the Concat with SubstringCount,&amp;nbsp;SubstringCount(Concat({[State1]}Year,'|'),'|') = 0 when only 1 year is selected.&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;SubstringCount(Concat({[State1]}Year,'|'),'|') = 0 or&amp;nbsp;SubstringCount(Concat({[State2]}Year,'|'),'|') = 0&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 15:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732177#M455472</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-07-30T15:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselection alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732680#M455473</link>
      <description>&lt;P&gt;hi Jwjackso,&lt;/P&gt;&lt;P&gt;when adding :&amp;nbsp;&lt;SPAN&gt;Concat({[State1]}Year,'|')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i receive&amp;nbsp;duplication of the year selected in state 1 , so the SubstringCount retrieves a huge number..&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 07:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732680#M455473</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2020-08-03T07:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselection alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732753#M455474</link>
      <description>&lt;P&gt;Add Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Concat({[State1]} Distinct Year,'|')&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 11:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732753#M455474</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-08-03T11:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: getfieldselection alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732972#M455475</link>
      <description>&lt;P&gt;yap. that did the trick.&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 06:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getfieldselection-alternate-state/m-p/1732972#M455475</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2020-08-04T06:36:50Z</dc:date>
    </item>
  </channel>
</rss>

