<?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 Dynamic Calculation based on User Selected Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-based-on-User-Selected-Value/m-p/1958814#M1220001</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have one requirement like we have 2 columns year and forecast value. We are trying to present the future forecast value based on the current year selection where forecast value will be sum of all future years based on current Year selection. I am giving condition based on&lt;/P&gt;
&lt;P&gt;year&amp;gt;= current selection, but we are not getting Expected values.&lt;/P&gt;
&lt;P&gt;Can anyone help me here?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 10:25:25 GMT</pubDate>
    <dc:creator>Tejeswari_123</dc:creator>
    <dc:date>2022-07-21T10:25:25Z</dc:date>
    <item>
      <title>Dynamic Calculation based on User Selected Value</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-based-on-User-Selected-Value/m-p/1958814#M1220001</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have one requirement like we have 2 columns year and forecast value. We are trying to present the future forecast value based on the current year selection where forecast value will be sum of all future years based on current Year selection. I am giving condition based on&lt;/P&gt;
&lt;P&gt;year&amp;gt;= current selection, but we are not getting Expected values.&lt;/P&gt;
&lt;P&gt;Can anyone help me here?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 10:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-based-on-User-Selected-Value/m-p/1958814#M1220001</guid>
      <dc:creator>Tejeswari_123</dc:creator>
      <dc:date>2022-07-21T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Calculation based on User Selected Value</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-based-on-User-Selected-Value/m-p/1958831#M1220003</link>
      <description>&lt;P&gt;For this calculation, you need to create a variable&lt;/P&gt;
&lt;P&gt;let VlYear=getfieldselections(Year) Ex:- like this&amp;nbsp;&lt;SPAN&gt;getfieldselections(Product)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then in your set analysis need to use that variable in calculation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4 class="fittexted_for_content_h4"&gt;&lt;SPAN&gt;FYI...&lt;/SPAN&gt;&lt;/H4&gt;
&lt;H4 class="fittexted_for_content_h4"&gt;&lt;SPAN&gt;GetFieldSelections() function&lt;/SPAN&gt;&lt;/H4&gt;
&lt;P&gt;&lt;SPAN&gt;The GetFieldSelections() function returns the values that are selected in a particular field. This function returns a string or text value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Syntax&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="enlighter-default enlighter-v-standard enlighter-t-eclipse enlighter-hover enlighter-linenumbers "&gt;
&lt;DIV class="enlighter"&gt;
&lt;DIV class=""&gt;
&lt;DIV&gt;&lt;SPAN class="enlighter-m0"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN class="enlighter-g1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="enlighter-text"&gt;field_name &lt;/SPAN&gt;&lt;SPAN class="enlighter-g1"&gt;[&lt;/SPAN&gt;&lt;SPAN class="enlighter-text"&gt;, value_sep &lt;/SPAN&gt;&lt;SPAN class="enlighter-g1"&gt;[&lt;/SPAN&gt;&lt;SPAN class="enlighter-text"&gt;, max_values &lt;/SPAN&gt;&lt;SPAN class="enlighter-g1"&gt;[&lt;/SPAN&gt;&lt;SPAN class="enlighter-text"&gt;, state_name&lt;/SPAN&gt;&lt;SPAN class="enlighter-g1"&gt;]]])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Where,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;field_name&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;is the name of the field from which you wish to get the selected values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;value_sep&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is the separator used between field values. Such as ‘,’.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;max_values&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;sets the maximum number of field values that can be listed individually. The default value is set to 6.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;state_name&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;parameter, you can mention an alternate state of the visualization, if present.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 11:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-based-on-User-Selected-Value/m-p/1958831#M1220003</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2022-07-21T11:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Calculation based on User Selected Value</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-based-on-User-Selected-Value/m-p/1958858#M1220006</link>
      <description>&lt;P&gt;Hello Rama,&lt;/P&gt;
&lt;P&gt;We have tried with this function but still we are not getting Expected values&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 12:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Calculation-based-on-User-Selected-Value/m-p/1958858#M1220006</guid>
      <dc:creator>Tejeswari_123</dc:creator>
      <dc:date>2022-07-21T12:09:05Z</dc:date>
    </item>
  </channel>
</rss>

