<?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: Filter a variable value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422811#M95827</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Have you tried this?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{$&amp;lt;Year = {'2024'}&amp;gt;} $(v_total_count)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2024 09:46:22 GMT</pubDate>
    <dc:creator>Clement15</dc:creator>
    <dc:date>2024-02-23T09:46:22Z</dc:date>
    <item>
      <title>Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422807#M95826</link>
      <description>&lt;P&gt;Hi guys, i've a problem. In my project i've many things to sum and all of them give results by year, month and day.&lt;/P&gt;
&lt;P&gt;To simplify my scripts i created a variable "v_total_count" with inside it sum(A) + sum(B) + Sum(C) ....+ Sum(Z)&lt;/P&gt;
&lt;P&gt;Now I want to create a chart with months as rows and total count for specific years as columns.&lt;/P&gt;
&lt;P&gt;How can i do this without filtering dimensions in my dashboard?&lt;/P&gt;
&lt;P&gt;For example as first column i'd like to have count month by month for year 2024&lt;/P&gt;
&lt;P&gt;if i have an expression i do&amp;nbsp;Sum({$&amp;lt;Year {'2024'}&amp;gt;}A)&lt;/P&gt;
&lt;P&gt;What do i have to do to have the same filter for a variable?&lt;/P&gt;
&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 09:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422807#M95826</guid>
      <dc:creator>Giuseppe_Alleruzzo</dc:creator>
      <dc:date>2024-02-23T09:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422811#M95827</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Have you tried this?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{$&amp;lt;Year = {'2024'}&amp;gt;} $(v_total_count)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 09:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422811#M95827</guid>
      <dc:creator>Clement15</dc:creator>
      <dc:date>2024-02-23T09:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422812#M95828</link>
      <description>&lt;P&gt;You can write the Set Analysis in front of the expression:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;{$&amp;lt;Year {'2024'}&amp;gt;} Sum(A)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN&gt;{$&amp;lt;Year {'2024'}&amp;gt;} $(v_total_count)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 09:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422812#M95828</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-02-23T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422815#M95829</link>
      <description>&lt;P&gt;I tried and into the chart i visualize "Garbage after expression: "$" "&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 09:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422815#M95829</guid>
      <dc:creator>Giuseppe_Alleruzzo</dc:creator>
      <dc:date>2024-02-23T09:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422816#M95830</link>
      <description>&lt;P&gt;What type of chart do you use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got this in a pivot table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clement15_0-1708682231826.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160526i5A6BB8F1CDF1995B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clement15_0-1708682231826.png" alt="Clement15_0-1708682231826.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 09:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422816#M95830</guid>
      <dc:creator>Clement15</dc:creator>
      <dc:date>2024-02-23T09:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422822#M95833</link>
      <description>&lt;P&gt;Straigth table, what do you have into variable v_test?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 10:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422822#M95833</guid>
      <dc:creator>Giuseppe_Alleruzzo</dc:creator>
      <dc:date>2024-02-23T10:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422827#M95834</link>
      <description>&lt;P&gt;I've got this :&amp;nbsp;sum(FlagLancement)+sum(FlagLancement2)&lt;/P&gt;
&lt;P&gt;It's not really useful. I created it for the test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 10:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422827#M95834</guid>
      <dc:creator>Clement15</dc:creator>
      <dc:date>2024-02-23T10:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422832#M95835</link>
      <description>&lt;P&gt;ok thank you, what do you suggest as an alternative?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 10:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422832#M95835</guid>
      <dc:creator>Giuseppe_Alleruzzo</dc:creator>
      <dc:date>2024-02-23T10:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422834#M95836</link>
      <description>&lt;P&gt;I don't understand the request. Doesn't work on your end? The measure also works in a straight table.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 10:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422834#M95836</guid>
      <dc:creator>Clement15</dc:creator>
      <dc:date>2024-02-23T10:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422856#M95839</link>
      <description>&lt;P&gt;I made another test, into variable v_test i put only one sum&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Giuseppe_Alleruzzo_1-1708684897203.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160528i3E9220C4B3FC269C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Giuseppe_Alleruzzo_1-1708684897203.png" alt="Giuseppe_Alleruzzo_1-1708684897203.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Giuseppe_Alleruzzo_0-1708684786197.png" style="width: 397px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160527i4EC89221D23A4EA8/image-dimensions/397x167?v=v2" width="397" height="167" role="button" title="Giuseppe_Alleruzzo_0-1708684786197.png" alt="Giuseppe_Alleruzzo_0-1708684786197.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Giuseppe_Alleruzzo_2-1708685589868.png" style="width: 403px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160535iED6B5FA80341E972/image-dimensions/403x206?v=v2" width="403" height="206" role="button" title="Giuseppe_Alleruzzo_2-1708685589868.png" alt="Giuseppe_Alleruzzo_2-1708685589868.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know why into the definition of the expression I see "Expression OK" and into the formula all underlined in red, as if there was a mistake?&lt;/P&gt;
&lt;P&gt;I don't understand&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 10:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422856#M95839</guid>
      <dc:creator>Giuseppe_Alleruzzo</dc:creator>
      <dc:date>2024-02-23T10:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422860#M95840</link>
      <description>&lt;P&gt;I'm working on the Qlik Sense SaaS version, and I don't have this. I don't know if it's from the version. But be careful not to forget the = in the measure.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 10:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422860#M95840</guid>
      <dc:creator>Clement15</dc:creator>
      <dc:date>2024-02-23T10:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422861#M95841</link>
      <description>&lt;P&gt;I think the same thing, it could depend from the version. I work on QV 12. I put the = into the measure but it's not the problem.&lt;/P&gt;
&lt;P&gt;What do you suggest as an alternative to the variable if you have to sum 15 dimensions all together to have the total for every day, month or year and use it for another chart?&lt;/P&gt;
&lt;P&gt;A,B,C... are different things and have different sources (into the script i have a load for A from a DB,&amp;nbsp; a load for B from another DB...)&lt;/P&gt;
&lt;P&gt;I can't write everytime Sum(A) + Sum(B) + ...Sum(X).&lt;/P&gt;
&lt;P&gt;Thank you so much for the answer&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 11:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422861#M95841</guid>
      <dc:creator>Giuseppe_Alleruzzo</dc:creator>
      <dc:date>2024-02-23T11:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422876#M95843</link>
      <description>&lt;P&gt;AFAIK is the above suggested outer set analysis only within the latest releases of QV12 available. The syntax-highlighter has some restriction but it hints in the direction that your release didn't know the feature already.&lt;/P&gt;
&lt;P&gt;Beside this you should check the variable-interpretation independent of the the set analysis - and if it's not working you may change: $(v_test) to $(&lt;STRONG&gt;=&lt;/STRONG&gt;v_test)&lt;/P&gt;
&lt;P&gt;Further you may include the set analysis as parameter within the variable, maybe in this (simplified) way:&lt;/P&gt;
&lt;P&gt;set v = "sum($1 rangesum(A, B,C))"&lt;/P&gt;
&lt;P&gt;and then calling the variable like:&lt;/P&gt;
&lt;P&gt;$(v({&amp;lt; Year = {2024}&amp;gt;}))&lt;/P&gt;
&lt;P&gt;Note: the rangesum() is quite the same like A + B + C without returning an error if any of the values isn't a number and it's not always the same as sum(A) + sum(B) + sum(C) but within the most scenarios it will return the wanted results.&lt;/P&gt;
&lt;P&gt;Independent of the above it seems that your measure-fields have a crosstable-structure which is often very painful to handle. Better is mostly to transform the data-set per: &lt;A href="https://community.qlik.com/t5/Design/The-Crosstable-Load/ba-p/1468083" target="_blank"&gt;The Crosstable Load - Qlik Community - 1468083&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 11:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422876#M95843</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-02-23T11:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422895#M95845</link>
      <description>&lt;P&gt;Hi Marcus, I tried but filter doesn't work. I created two expressions, the first without filter (so I have totale volumes of 2022,2023 and 2024), and the second with filter as you suggest (2024). The result is the same for the two expressions&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Giuseppe_Alleruzzo_0-1708690640563.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160545i25E442802056BAC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Giuseppe_Alleruzzo_0-1708690640563.png" alt="Giuseppe_Alleruzzo_0-1708690640563.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Giuseppe_Alleruzzo_1-1708690678248.png" style="width: 355px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160547iB9ADB4EFEE155C8B/image-dimensions/355x152?v=v2" width="355" height="152" role="button" title="Giuseppe_Alleruzzo_1-1708690678248.png" alt="Giuseppe_Alleruzzo_1-1708690678248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Giuseppe_Alleruzzo_2-1708690731672.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160548i06A5DA8F20F01AA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Giuseppe_Alleruzzo_2-1708690731672.png" alt="Giuseppe_Alleruzzo_2-1708690731672.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I don't know why it doesn't work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 12:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422895#M95845</guid>
      <dc:creator>Giuseppe_Alleruzzo</dc:creator>
      <dc:date>2024-02-23T12:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a variable value</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422903#M95846</link>
      <description>&lt;P&gt;Did you really creates a second variable which contained the mentioned parameter?&lt;/P&gt;
&lt;P&gt;Beside this remove the expression-lable and then hoover with the mouse on them. In a popup you will see the applied expressions with a resolving of the variables. Does this expression really look like as if you had written it completely manual?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 12:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-a-variable-value/m-p/2422903#M95846</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-02-23T12:35:13Z</dc:date>
    </item>
  </channel>
</rss>

