<?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 Alternate states in expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Alternate-states-in-expressions/m-p/1792565#M1210821</link>
    <description>&lt;P&gt;The documentation actually explains your first question...&lt;/P&gt;&lt;P&gt;"The &lt;SPAN class="CommonComponentsQlikView"&gt;QlikView&lt;/SPAN&gt; Developer will keep the Year and Month selections in State1 and State2 synchronized with the Year and Month selections in the &lt;SPAN class="Bold"&gt;default state&lt;/SPAN&gt;."&lt;/P&gt;&lt;P&gt;Using $::Year means passing the selection that exists in the default state.&lt;/P&gt;&lt;P&gt;For your second question, I'm not familiar with any other state-specific functions. Standard functions can be used to get state information, e.g. GetCurrentselections() will take a state parameter as detailed in the documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunctions/getcurrentselections.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunctions/getcurrentselections.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the QS documentation but the same syntax works in QV, though it seems they haven't updated the documentation to reflect this.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 14:20:39 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-03-18T14:20:39Z</dc:date>
    <item>
      <title>Using Alternate states in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Alternate-states-in-expressions/m-p/1792545#M1210819</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have just learned about alternate states, and I'm pretty excited about them!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, while searching for examples on using them in expressions, I've come across&amp;nbsp; some sort of dollar-sign expansion that I don't understand.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Qlik help doc for &lt;A href="https://help.qlik.com/en-US/qlikview/November2018/Subsystems/Client/Content/QV_QlikView/Examples%20of%20Alternate%20States%20in%20Chart%20Expressions.htm?_ga=2.102569539.353624735.1616056753-1144981725.1612278275" target="_self"&gt;Examples of Alternate States in Chart Expression&lt;/A&gt;s there is the following example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;({State1&amp;lt;Year = $::Year, Month = $::Month&amp;gt;} DISTINCT [Invoice Number])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What does the&amp;nbsp;Year = $::Year and&amp;nbsp; Month = $::Month bit mean ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second question, I've seen the&amp;nbsp;StateName() function, are there any other alternative state specific functions ?&amp;nbsp; I haven't seen any others, but it seems strange that isn't somethat that allows access the values of the alternative state...?&lt;/P&gt;&lt;P&gt;Thanks for any help, idea, useful links!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 13:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Alternate-states-in-expressions/m-p/1792545#M1210819</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2021-03-18T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Alternate states in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Alternate-states-in-expressions/m-p/1792565#M1210821</link>
      <description>&lt;P&gt;The documentation actually explains your first question...&lt;/P&gt;&lt;P&gt;"The &lt;SPAN class="CommonComponentsQlikView"&gt;QlikView&lt;/SPAN&gt; Developer will keep the Year and Month selections in State1 and State2 synchronized with the Year and Month selections in the &lt;SPAN class="Bold"&gt;default state&lt;/SPAN&gt;."&lt;/P&gt;&lt;P&gt;Using $::Year means passing the selection that exists in the default state.&lt;/P&gt;&lt;P&gt;For your second question, I'm not familiar with any other state-specific functions. Standard functions can be used to get state information, e.g. GetCurrentselections() will take a state parameter as detailed in the documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunctions/getcurrentselections.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunctions/getcurrentselections.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the QS documentation but the same syntax works in QV, though it seems they haven't updated the documentation to reflect this.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 14:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Alternate-states-in-expressions/m-p/1792565#M1210821</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-18T14:20:39Z</dc:date>
    </item>
  </channel>
</rss>

