<?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: Chart expression should react to only few fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863031#M71218</link>
    <description>&lt;P&gt;Okk&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In my case my report has 3 sheets one for each company. in Sheet-1 i have to show only company 'A'. So we are freezing the field Company and all the data shown in the report will show only A.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i use the suggested expression it will all companies data. So I also tried something like this but did not work.&lt;/P&gt;
&lt;P&gt;=sum({1&amp;lt;Company = {'A'},Market=$::Market&amp;gt;}ChargeHours)&lt;/P&gt;
&lt;P&gt;One fixed filter and one changeable.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 11:15:37 GMT</pubDate>
    <dc:creator>VENKY_A</dc:creator>
    <dc:date>2021-11-24T11:15:37Z</dc:date>
    <item>
      <title>Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862555#M71160</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have Bar chart and my report has many filters Like Market, Market unit, Country, period, industry, client etc.,&lt;/P&gt;
&lt;P&gt;My Chart should reach to only Market and Period filters. for any other filter my chart should not react.&lt;/P&gt;
&lt;P&gt;I have solution but i have many filters and i cannot keep adding all of them. so looking for an alternate.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option-1:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This is making my chart static but not reacting to Market and period&lt;/P&gt;
&lt;P&gt;Sum({1}NWD)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option-2:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This option is working but i dont want to use all the filters here. is there any alternative.&lt;/P&gt;
&lt;P&gt;Sum(${&amp;lt;Country=,Client=,Industry=.....&amp;gt;}NWD)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862555#M71160</guid>
      <dc:creator>VENKY_A</dc:creator>
      <dc:date>2024-11-15T23:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862563#M71161</link>
      <description>&lt;P&gt;Have a look at the solutions proposed here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Set-Analysis-Avoiding-all-selections-except-one/td-p/989669" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Set-Analysis-Avoiding-all-selections-except-one/td-p/989669&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 13:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862563#M71161</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-23T13:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862858#M71193</link>
      <description>&lt;P&gt;No, that is not the expected. I want only market filter should work on the chart. for any other filters the chart should remain static.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 05:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862858#M71193</guid>
      <dc:creator>VENKY_A</dc:creator>
      <dc:date>2021-11-24T05:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862880#M71198</link>
      <description>&lt;P&gt;That's exactly what the link describes, near as I can tell? Ignoring all filters except one.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 07:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862880#M71198</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-24T07:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862893#M71200</link>
      <description>&lt;P&gt;Let me elaborate on this. My chart is not having any other filter values in it, it has only market and period columns in it. So when ever we select a other filter value it is disappearing.&lt;/P&gt;
&lt;P&gt;Also as suggested in the link i have changed the expression as below, but the chart is not reacting to market filter also.&lt;/P&gt;
&lt;P&gt;Sum({1&amp;lt;Market=$::Market&amp;gt;}[Chargeable hours])/Avg({1&amp;lt;Market=$::Market,Flag = {1}&amp;gt;}NWD)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 07:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862893#M71200</guid>
      <dc:creator>VENKY_A</dc:creator>
      <dc:date>2021-11-24T07:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862930#M71207</link>
      <description>&lt;P&gt;I tried to replicate what you're describing with some sample data, since I don't have access to your data.&lt;/P&gt;
&lt;P&gt;Load * INLINE [&lt;BR /&gt;Market, Period, Hours&lt;BR /&gt;Market1, Period1, 10&lt;BR /&gt;Market1, Period2, 20&lt;BR /&gt;Market1, Period3, 30&lt;BR /&gt;Market2, Period1, 1&lt;BR /&gt;Market2, Period2, 2&lt;BR /&gt;Market2, Period3, 3&lt;BR /&gt;Market3, Period1, 5&lt;BR /&gt;Market3, Period2, 10&lt;BR /&gt;Market3, Period3, 15&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Expression formula: Sum({1&amp;lt;Market=$::Market&amp;gt;}[Hours])&lt;/P&gt;
&lt;P&gt;When a market is selected:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Or_0-1637743182712.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67325iAED5E4497B83CF3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Or_0-1637743182712.png" alt="Or_0-1637743182712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When something else, such as Period, is selected:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Or_1-1637743212333.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67326iFF779972F25F9DFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Or_1-1637743212333.png" alt="Or_1-1637743212333.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This appears to be the behavior you're expecting, so if it's not working on your end, I'd suggest you check whether something else is interfering - perhaps the Flag = {1} part?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 08:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1862930#M71207</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-24T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863016#M71213</link>
      <description>&lt;P&gt;Okk Here is an sample chart attached.&lt;/P&gt;
&lt;P&gt;Assume the right side list boxes are all filters in the report. But Industry is not part of the Chart table. So when ever we select a value from Industry the chart disappears. So I want Company and Market Filter should work and when we select Industry chart should not impact.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VENKY_A_0-1637750971957.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67339iF146441E2B348A7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VENKY_A_0-1637750971957.png" alt="VENKY_A_0-1637750971957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If it is one or few filters then i can use something like this. But i have a big list of filters and i dont want to write all of them in the expression.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum(${&amp;lt;Country=,Client=,Industry=.....&amp;gt;}ChargeHours)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this is clear now.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 10:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863016#M71213</guid>
      <dc:creator>VENKY_A</dc:creator>
      <dc:date>2021-11-24T10:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863024#M71214</link>
      <description>&lt;P&gt;When I select a value from "Industry" using the suggested formula, the chart does not disappear...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Or_0-1637751681416.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67341iA7AFB8EB3621692B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Or_0-1637751681416.png" alt="Or_0-1637751681416.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 11:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863024#M71214</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-24T11:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863031#M71218</link>
      <description>&lt;P&gt;Okk&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In my case my report has 3 sheets one for each company. in Sheet-1 i have to show only company 'A'. So we are freezing the field Company and all the data shown in the report will show only A.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i use the suggested expression it will all companies data. So I also tried something like this but did not work.&lt;/P&gt;
&lt;P&gt;=sum({1&amp;lt;Company = {'A'},Market=$::Market&amp;gt;}ChargeHours)&lt;/P&gt;
&lt;P&gt;One fixed filter and one changeable.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 11:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863031#M71218</guid>
      <dc:creator>VENKY_A</dc:creator>
      <dc:date>2021-11-24T11:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863036#M71220</link>
      <description>&lt;P&gt;This still works with your sample QVW, so I'm not sure what the problem is.&lt;/P&gt;
&lt;P&gt;Selecting a company doesn't impact the chart, as it shouldn't (it should always be A)&lt;/P&gt;
&lt;P&gt;Selecting an industry doesn't impact the chart, as it shouldn't (should be ignored)&lt;/P&gt;
&lt;P&gt;Selecting a market impacts the chart (selecting America will result in no values being displayed because there are no values for America within Company = A)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 11:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863036#M71220</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-24T11:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Chart expression should react to only few fields</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863043#M71221</link>
      <description>&lt;P&gt;One option to solve your problem is to create a new alternate state.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 11:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-expression-should-react-to-only-few-fields/m-p/1863043#M71221</guid>
      <dc:creator>Mario_ES</dc:creator>
      <dc:date>2021-11-24T11:25:32Z</dc:date>
    </item>
  </channel>
</rss>

