<?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: $() Expansion is ignoring the dimension filters in a chart table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expansion-is-ignoring-the-dimension-filters-in-a-chart-table/m-p/2435685#M96991</link>
    <description>&lt;P&gt;Th $-expansion creates an adhoc-variable which could have only a single value at a time - and this is calculated before the chart and then applied to all rows.&lt;/P&gt;
&lt;P&gt;Beside this you couldn't any condition within a set analysis which needs to respect the dimension-values because it worked like a selection on a column-level. To consider any row-level conditions you will need an if-loop.&lt;/P&gt;
&lt;P&gt;In your case you may need an expression like:&lt;/P&gt;
&lt;P&gt;if(Code = 1001, $(vKPI_1001),&amp;nbsp;if(Code = 1002, $(vKPI_1002), ...))&lt;/P&gt;
&lt;P&gt;which is probably not what you want to do.&lt;/P&gt;
&lt;P&gt;I suggest that you consider to change the approach completely and moving the expression-logic into the dimensional layer within the data-model.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 14:44:59 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-03-28T14:44:59Z</dc:date>
    <item>
      <title>$() Expansion is ignoring the dimension filters in a chart table</title>
      <link>https://community.qlik.com/t5/App-Development/Expansion-is-ignoring-the-dimension-filters-in-a-chart-table/m-p/2435555#M96980</link>
      <description>&lt;P&gt;Hello Qlik lovers, I have an interesting case that I came across and I hope you can help me solve it.&lt;/P&gt;
&lt;P&gt;For this case, I am trying to filter against a numeric field [KPI_Code]&lt;/P&gt;
&lt;P&gt;I created a Table and inserted [&lt;STRONG&gt;KPI_Code&lt;/STRONG&gt;] as a Dimension.&lt;/P&gt;
&lt;P&gt;I have &lt;STRONG&gt;2&lt;/STRONG&gt; expressions, the results are in the table below&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expression A&lt;/STRONG&gt;:&amp;nbsp;Max(KPI_Code)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expression B&lt;/STRONG&gt;:&amp;nbsp;Aggr(Only({&amp;lt;KPI_Code={"$(=Max(KPI_Code))"}&amp;gt;}KPI_Code),KPI_Code)&lt;/P&gt;
&lt;P&gt;when I use a dollar sign expansion, it always gives me the maximum number in the dataset, disregarding the dimension value.&lt;/P&gt;
&lt;P&gt;How can I use &lt;STRONG&gt;$()&lt;/STRONG&gt; and still get values just like in &lt;STRONG&gt;Expression A ???&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;------------&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Note: I need to use the $() because I need the output value inside a variable to call its expression&lt;/P&gt;
&lt;P&gt;Example: vKPI_$()_Expression&lt;/P&gt;
&lt;P&gt;if the $() resulted in 1001 then the variable would become&amp;nbsp; vKPI_1001_Expression and I would use it's saved expression output in the cell beside its corresponding KPI_Code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="537"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="96"&gt;KPI_Code&lt;/TD&gt;
&lt;TD width="96"&gt;Expression A&lt;/TD&gt;
&lt;TD width="345"&gt;Expression B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;1004&lt;/TD&gt;
&lt;TD&gt;1004&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1001&lt;/TD&gt;
&lt;TD&gt;1001&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1002&lt;/TD&gt;
&lt;TD&gt;1002&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1003&lt;/TD&gt;
&lt;TD&gt;1003&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1004&lt;/TD&gt;
&lt;TD&gt;1004&lt;/TD&gt;
&lt;TD&gt;1004&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 28 Mar 2024 10:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expansion-is-ignoring-the-dimension-filters-in-a-chart-table/m-p/2435555#M96980</guid>
      <dc:creator>skafimn</dc:creator>
      <dc:date>2024-03-28T10:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: $() Expansion is ignoring the dimension filters in a chart table</title>
      <link>https://community.qlik.com/t5/App-Development/Expansion-is-ignoring-the-dimension-filters-in-a-chart-table/m-p/2435567#M96981</link>
      <description>&lt;P&gt;=Aggr(Max({&amp;lt;KPI_Code={"$(=Max(KPI_Code))"}&amp;gt;} KPI_Code), KPI_Code)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 11:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expansion-is-ignoring-the-dimension-filters-in-a-chart-table/m-p/2435567#M96981</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-03-28T11:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: $() Expansion is ignoring the dimension filters in a chart table</title>
      <link>https://community.qlik.com/t5/App-Development/Expansion-is-ignoring-the-dimension-filters-in-a-chart-table/m-p/2435685#M96991</link>
      <description>&lt;P&gt;Th $-expansion creates an adhoc-variable which could have only a single value at a time - and this is calculated before the chart and then applied to all rows.&lt;/P&gt;
&lt;P&gt;Beside this you couldn't any condition within a set analysis which needs to respect the dimension-values because it worked like a selection on a column-level. To consider any row-level conditions you will need an if-loop.&lt;/P&gt;
&lt;P&gt;In your case you may need an expression like:&lt;/P&gt;
&lt;P&gt;if(Code = 1001, $(vKPI_1001),&amp;nbsp;if(Code = 1002, $(vKPI_1002), ...))&lt;/P&gt;
&lt;P&gt;which is probably not what you want to do.&lt;/P&gt;
&lt;P&gt;I suggest that you consider to change the approach completely and moving the expression-logic into the dimensional layer within the data-model.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 14:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expansion-is-ignoring-the-dimension-filters-in-a-chart-table/m-p/2435685#M96991</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-03-28T14:44:59Z</dc:date>
    </item>
  </channel>
</rss>

