<?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: Issue in the given set expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660375#M49510</link>
    <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant share the app file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per my use-case, I have defined 2 dimensions in filter pane.&lt;/P&gt;&lt;P&gt;1) 'Day Number' (Days listed from 1-31)&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; 'Amount Selection'. (Amount types: beacon usd and&amp;nbsp; amount USD)&lt;/P&gt;&lt;P&gt;if the user selects a 'Day Number', my graph should show the amount aggregated till that day.&amp;nbsp;eg: if the user selects day 5, The amount from Day 1 to Day 5 will be added.&amp;nbsp; The amount, in this case, will be a default amount type(amount usd).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if the user selects 'Amount Selection' -&amp;nbsp; beacon USD from filter pane and Day Number - 5,&amp;nbsp; the graph should calculate amounts from Day 1 to Day5&amp;nbsp; from&amp;nbsp; beacon usd amount column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to calculate amounts with only Day Number selection&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUN_USD)/10000000,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/10000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For Amount Selection, I had defined an inline table&lt;/P&gt;&lt;P&gt;KPI_SELECTION:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;KpiID, Kpi&lt;/P&gt;&lt;P&gt;1, "BEACON USD"&lt;BR /&gt;2, "AMOUNT USD"];&lt;/P&gt;&lt;P&gt;and then i was trying to use pick function&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If (GetSelectedCount([Kpi])=0,&lt;BR /&gt;SUM({&amp;lt;Kpi={'AMOUNT USD'}&amp;gt;}Pick(KpiID,&lt;BR /&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUNT_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/10000000&lt;BR /&gt;)&lt;BR /&gt;))),&lt;/P&gt;&lt;P&gt;If (GetSelectedCount([Kpi]) &amp;gt; 1,&lt;BR /&gt;'Please select only one amount from Amount Panel',&lt;BR /&gt;Pick(KpiID,&lt;BR /&gt;(&lt;BR /&gt;if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}BEACON_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}BEACON_USD)/10000000)&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;(&lt;BR /&gt;if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUNT_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/10000000)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with this script,&amp;nbsp; if I select usd amount in Amount selection. The graph is not displaying inr amounts. Its blank in all cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2019 06:50:49 GMT</pubDate>
    <dc:creator>ashima_0605</dc:creator>
    <dc:date>2019-12-24T06:50:49Z</dc:date>
    <item>
      <title>Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660066#M49496</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have to calculate the amount till the selected date in the quarter and if the day is not selected, then calculate till the current day from the start of the quarter.&lt;/P&gt;&lt;P&gt;I am able to calculate for single currency by formula&lt;/P&gt;&lt;P&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}BEACON_INR)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}BEACON_INR)/10000000&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;However, I have a filter pane with multiple currency types. We have defined the inline table in load script for the same&lt;/P&gt;&lt;P&gt;KPI_SELECTION:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;KpiID, Kpi&lt;/P&gt;&lt;P&gt;1, "BEACON USD"&lt;BR /&gt;2, "AMOUNT USD"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I defined a master measure for the same with below-mentioned code. But it is not giving me the expected results. Can you help&lt;/P&gt;&lt;P&gt;If (GetSelectedCount([Kpi])=0,&lt;BR /&gt;SUM({&amp;lt;Kpi={'AMOUNT USD'}&amp;gt;}Pick(KpiID,&lt;BR /&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUNT_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/10000000&lt;BR /&gt;)&lt;BR /&gt;))),&lt;/P&gt;&lt;P&gt;If (GetSelectedCount([Kpi]) &amp;gt; 1,&lt;BR /&gt;'Please select only one amount from Amount Panel',&lt;BR /&gt;Pick(KpiID,&lt;BR /&gt;(&lt;BR /&gt;if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}BEACON_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}BEACON_USD)/10000000)&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;(&lt;BR /&gt;if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUNT_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/10000000)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660066#M49496</guid>
      <dc:creator>ashima_0605</dc:creator>
      <dc:date>2024-11-16T03:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660072#M49497</link>
      <description>&lt;P&gt;Can you post the application so that we can have a proper look at it?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 12:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660072#M49497</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2019-12-23T12:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660124#M49502</link>
      <description>&lt;P&gt;What is it giving as an output and what do you expect to see?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 13:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660124#M49502</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-23T13:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660375#M49510</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant share the app file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per my use-case, I have defined 2 dimensions in filter pane.&lt;/P&gt;&lt;P&gt;1) 'Day Number' (Days listed from 1-31)&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; 'Amount Selection'. (Amount types: beacon usd and&amp;nbsp; amount USD)&lt;/P&gt;&lt;P&gt;if the user selects a 'Day Number', my graph should show the amount aggregated till that day.&amp;nbsp;eg: if the user selects day 5, The amount from Day 1 to Day 5 will be added.&amp;nbsp; The amount, in this case, will be a default amount type(amount usd).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if the user selects 'Amount Selection' -&amp;nbsp; beacon USD from filter pane and Day Number - 5,&amp;nbsp; the graph should calculate amounts from Day 1 to Day5&amp;nbsp; from&amp;nbsp; beacon usd amount column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to calculate amounts with only Day Number selection&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUN_USD)/10000000,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/10000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For Amount Selection, I had defined an inline table&lt;/P&gt;&lt;P&gt;KPI_SELECTION:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;KpiID, Kpi&lt;/P&gt;&lt;P&gt;1, "BEACON USD"&lt;BR /&gt;2, "AMOUNT USD"];&lt;/P&gt;&lt;P&gt;and then i was trying to use pick function&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If (GetSelectedCount([Kpi])=0,&lt;BR /&gt;SUM({&amp;lt;Kpi={'AMOUNT USD'}&amp;gt;}Pick(KpiID,&lt;BR /&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUNT_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/10000000&lt;BR /&gt;)&lt;BR /&gt;))),&lt;/P&gt;&lt;P&gt;If (GetSelectedCount([Kpi]) &amp;gt; 1,&lt;BR /&gt;'Please select only one amount from Amount Panel',&lt;BR /&gt;Pick(KpiID,&lt;BR /&gt;(&lt;BR /&gt;if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}BEACON_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}BEACON_USD)/10000000)&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;(&lt;BR /&gt;if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUNT_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/10000000)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with this script,&amp;nbsp; if I select usd amount in Amount selection. The graph is not displaying inr amounts. Its blank in all cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 06:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660375#M49510</guid>
      <dc:creator>ashima_0605</dc:creator>
      <dc:date>2019-12-24T06:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660387#M49514</link>
      <description>&lt;P&gt;Hello Ashima,&lt;/P&gt;&lt;P&gt;Whatever may be currencies in the Inline Table, you can get the correct result.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Make a variable which will return the default currency if no currency is selected. Else it should return the selected Currency.&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;BR /&gt;Create a variable "v_Currency".&lt;/P&gt;&lt;P&gt;&lt;U&gt;Expression will be:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;if (getselectedcount(&lt;SPAN&gt;KpiID&lt;/SPAN&gt;)=0, 'your default currency name/ID',&amp;nbsp; getfieldselection(&lt;SPAN&gt;Kpi&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt;&lt;BR /&gt;Use this variable&amp;nbsp;"v_Currency" in your Set Expression in the place where you are specifying the Currency_Type.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;U&gt;Your code was:&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUN_USD)/10000000,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/10000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;New Code after using the above created Variable will be:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}&lt;STRONG&gt;$(v_Currency)&lt;/STRONG&gt;)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}&lt;STRONG&gt;$(v_Currency)&lt;/STRONG&gt;)/10000000&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt;&lt;BR /&gt;Limit the Currency Selection with "&lt;U&gt;Always one Selected Value&lt;/U&gt;" so that Users may not be able to select the multiple Currencies at a time.&lt;BR /&gt;&lt;BR /&gt;Hope this works...!!!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Please Note:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I have assumed that your expression with one Currency was working correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;Rishikesh&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 07:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660387#M49514</guid>
      <dc:creator>rishikesh_suman</dc:creator>
      <dc:date>2019-12-24T07:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660398#M49515</link>
      <description>&lt;P&gt;Hi Ashima,&lt;/P&gt;&lt;P&gt;&lt;U&gt;You can use the multi currency selection with the below steps:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step1:&lt;/STRONG&gt; Create a new Variable "v_Currency" and write the below expression inside it&lt;BR /&gt;&lt;BR /&gt;if(getselectedcount(&lt;SPAN&gt;KpiID&lt;/SPAN&gt;)=0,'Your Default Currency', &lt;SPAN&gt;Kpi&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step2:&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Use the newly created variable in your expression:&lt;/P&gt;&lt;P&gt;&lt;U&gt;Your original Expression:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}BEACON_INR)/10000000,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}BEACON_INR)/10000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;New Expression using the new created Variable:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}&lt;STRONG&gt;$(v_Currency)&lt;/STRONG&gt;)/10000000,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}&lt;STRONG&gt;$(v_Currency)&lt;/STRONG&gt;)/10000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step3:&lt;/STRONG&gt;&lt;BR /&gt;Apply the feature "Always one Selected " in the list box so that you can restrict the users to select multiple currencies at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this works...!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please Note:&lt;/STRONG&gt; I have assumed that your original expression is working correctly with any of the Currencies&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Rishikesh&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 09:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660398#M49515</guid>
      <dc:creator>rishikesh_suman</dc:creator>
      <dc:date>2019-12-24T09:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660433#M49520</link>
      <description>&lt;P&gt;Sorry. I did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the variable is not working even if I put it in independent KPI graph.&lt;/P&gt;&lt;P&gt;It works only if we put code as 'getfieldselections(Kpi)'.&amp;nbsp; This displays blank without selection and the selected amount on selection from filter pane.&lt;/P&gt;&lt;P&gt;Even when I use $(v_Currency) in my code in graph, it is not displaying the graph on selection of currency from filter pane.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 10:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660433#M49520</guid>
      <dc:creator>ashima_0605</dc:creator>
      <dc:date>2019-12-24T10:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660443#M49521</link>
      <description>&lt;P&gt;Try using&amp;nbsp;&lt;SPAN&gt;Rishikesh solution but &lt;/SPAN&gt;&lt;SPAN&gt;update your inline table to match exactly the field name (including the underscores):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;KPI_SELECTION:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;KpiID, Kpi&lt;/P&gt;&lt;P&gt;1, "BEACON_USD"&lt;BR /&gt;2, "AMOUNT_USD"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand you can't post your entire application but try a subset of it. It really hard to understand what is going on without seeing it first hand&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 11:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660443#M49521</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2019-12-24T11:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660446#M49522</link>
      <description>&lt;P&gt;Hi Ashima,&lt;BR /&gt;Can you give your expressions and Inline Table Code and Field Names which should be selected when either of the Currencies are selected?&lt;/P&gt;&lt;P&gt;Please note that the field names corresponding to each currency in Inline table should be derived in script before hand.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 11:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660446#M49522</guid>
      <dc:creator>rishikesh_suman</dc:creator>
      <dc:date>2019-12-24T11:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660466#M49526</link>
      <description>&lt;P&gt;&lt;U&gt;Inline Table Code:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;KPI_SELECTION:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;KpiID, Kpi&lt;/P&gt;&lt;P&gt;1, "BEACON USD"&lt;BR /&gt;2, "AMOUNT USD"&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My column name in DB is with an underscore . So the table has column names as BEACON_USD and AMOUNT_USD&lt;/P&gt;&lt;P&gt;&lt;U&gt;Independent code that is running is:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(dateNumber)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}BEACON_USD)/10000000,&lt;BR /&gt;Sum({&amp;lt;[FLAG]={"ABC","DEF"},dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}BEACON_USD)/10000000)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Front end filter panes are follows:&amp;nbsp;&lt;/U&gt; Default currency to appear is Amount USD&lt;/P&gt;&lt;P&gt;DateNumber&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Amount Selection&lt;/P&gt;&lt;P&gt;1- 31&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BEACON USD&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AMOUNT USD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if the user selects&amp;nbsp; "BEACON USD" from the front end, then the DB's column that should be selected is&amp;nbsp; BEACON_USD&lt;/P&gt;&lt;P&gt;However, I tried a bit more, so this code worked&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(dateNumber)&amp;gt;0 and GetSelectedCount(Kpi)=0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}AMOUNT_USD)/1000000,&lt;BR /&gt;if((GetSelectedCount(dateNumber)&amp;gt;0) and GetSelectedCount(Kpi)&amp;gt;0,&lt;BR /&gt;Sum({$&amp;lt;dateNumber={"&amp;gt;=$(=0)&amp;lt;=$(=GetFieldSelections(dateNumber))"}&amp;gt;}Pick(KpiID,&lt;BR /&gt;BEACON_USD,AMOUNT_USD)/1000000,&lt;BR /&gt;if((GetSelectedCount(dateNumber)=0) and GetSelectedCount(Kpi)&amp;gt;0,&lt;BR /&gt;Sum({&amp;lt;dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}Pick(KpiID,&lt;BR /&gt;BEACON_USD,AMOUNT_USD))/1000000,&lt;BR /&gt;Sum({&amp;lt;dateNumber={"&amp;lt;=$(=CurrDayNo)"}&amp;gt;}AMOUNT_USD)/1000000)&lt;BR /&gt;))&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 12:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660466#M49526</guid>
      <dc:creator>ashima_0605</dc:creator>
      <dc:date>2019-12-24T12:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660472#M49527</link>
      <description>&lt;P&gt;Its good that this workaround is successful, however the code is not in optimized form. Depending on the dataset, the calculation will start to take more time.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 12:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660472#M49527</guid>
      <dc:creator>rishikesh_suman</dc:creator>
      <dc:date>2019-12-24T12:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in the given set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660689#M49562</link>
      <description>&lt;P&gt;Hmm. So what should be the approach? I could not think of any other solution&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 10:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-in-the-given-set-expression/m-p/1660689#M49562</guid>
      <dc:creator>ashima_0605</dc:creator>
      <dc:date>2019-12-26T10:20:35Z</dc:date>
    </item>
  </channel>
</rss>

