<?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: Disregarding chart dimension (x axis) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786818#M61374</link>
    <description>&lt;P&gt;this shows the bar chart with no suppression on Zero and missing&lt;/P&gt;</description>
    <pubDate>Sun, 28 Feb 2021 03:20:06 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2021-02-28T03:20:06Z</dc:date>
    <item>
      <title>Disregarding chart dimension (x axis)</title>
      <link>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786725#M61357</link>
      <description>&lt;P&gt;Hi Qlik experts&lt;/P&gt;&lt;P&gt;Need help on one use case.&lt;/P&gt;&lt;P&gt;Requirement: A simple bar chart with 1 dimension and 1 measure&lt;/P&gt;&lt;P&gt;Bar chart X axis&amp;nbsp; (Dimension) is column : Status&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Having 3 values: Green ,Red ,Amber)&lt;/P&gt;&lt;P&gt;Y axis (Measure) : Distinct count of GroupID&lt;/P&gt;&lt;P&gt;However the measure must be such that, when GroupID has more than 1 status available, only the highest available Status is counted for.&lt;/P&gt;&lt;P&gt;(Red &amp;gt; Amber &amp;gt; Green)&lt;/P&gt;&lt;P&gt;1 Filter object on the sheet : RecordDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;TD&gt;RecordDate&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;GroupID&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Remarks&amp;nbsp;&lt;EM&gt;(for explanation purpose) - not a data&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD&gt;2/1/20&lt;/TD&gt;&lt;TD&gt;RECD001&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Amber&lt;/TD&gt;&lt;TD&gt;3/1/20&lt;/TD&gt;&lt;TD&gt;RECD001&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;only this Status must be considered for RECD001 (unless RecordDate selected is 2/1/20. In that case OK to have 1 Green status counted for)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD&gt;4/1/20&lt;/TD&gt;&lt;TD&gt;RECD001&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;this Status&amp;nbsp; must be not considered for RECD001 since the Amber Status being higher.&amp;nbsp;(unless RecordDate selected is 2/1/20. In that case OK to have 1 Green status counted for)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD&gt;3/1/20&lt;/TD&gt;&lt;TD&gt;RECD002&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Amber&lt;/TD&gt;&lt;TD&gt;4/1/20&lt;/TD&gt;&lt;TD&gt;RECD002&lt;/TD&gt;&lt;TD&gt;for this RECD002, Green status&amp;nbsp; should not be considered (unless date selected is 3/1/20)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Amber&lt;/TD&gt;&lt;TD&gt;3/1/20&lt;/TD&gt;&lt;TD&gt;RECD003&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Amber&lt;/TD&gt;&lt;TD&gt;3/1/20&lt;/TD&gt;&lt;TD&gt;RECD004&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD&gt;2/1/20&lt;/TD&gt;&lt;TD&gt;RECD005&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD&gt;4/1/20&lt;/TD&gt;&lt;TD&gt;RECD005&lt;/TD&gt;&lt;TD&gt;When 4/1/20 or 2/1/20 is selected, RECD005 should be only counted against Red (and not Green)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Amber&lt;/TD&gt;&lt;TD&gt;2/1/20&lt;/TD&gt;&lt;TD&gt;RECD006&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD&gt;3/1/20&lt;/TD&gt;&lt;TD&gt;RECD006&lt;/TD&gt;&lt;TD&gt;When 3/1/20 or 2/1/20 is selected, RECD006 should be only counted against Amber (and not Green)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;expected bar chart output (when no record date is selected):&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-center" image-alt="Barchart_example.PNG" style="width: 276px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49983iE279C244F3DB7818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Barchart_example.PNG" alt="Barchart_example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have tried FirstSortedValue,&amp;nbsp; AGGR&amp;nbsp; along with TOTAL qualifier and even Only function. It feels I am close but not yet fully there!&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786725#M61357</guid>
      <dc:creator>Aj_</dc:creator>
      <dc:date>2024-11-16T17:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding chart dimension (x axis)</title>
      <link>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786817#M61373</link>
      <description>&lt;P&gt;to get the appropriate status per group ID you aggregate by group ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you aggregate you get a temp table group ID + the expression.&amp;nbsp;the if statement associates the status dimension with the max string (or aggregation expression) so when you count distinct of the resulting status and group id you get the desired result.&amp;nbsp; i added 3/1/2020 Green for RECD001 just to test it when you select that date.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 03:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786817#M61373</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-28T03:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding chart dimension (x axis)</title>
      <link>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786818#M61374</link>
      <description>&lt;P&gt;this shows the bar chart with no suppression on Zero and missing&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 03:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786818#M61374</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-28T03:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding chart dimension (x axis)</title>
      <link>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786820#M61375</link>
      <description>&lt;P&gt;there will be cases when you select a date, a specific Status will not exist, if you want all status shown in the x axis when a date is selected, it becomes a bit complicated.&lt;BR /&gt;if a status does not exist for the date you selected, that status will not show in the x Axis, when no date is selected then green is shown because there is an instance of green&amp;nbsp; for the possible values of DATE&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1614482902434.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50001i237C2411E987E579/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1614482902434.png" alt="edwin_0-1614482902434.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;however, in your original example, when 3/1/2020 is selected, there will be no possible selection for Red, so you don't see red.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;to remedy this, you can pad your data with Status/date combination with no measures.&amp;nbsp; so the association exists for all statuses and for each date selection.&amp;nbsp; this way you are able to show all statuses in the x axis.&amp;nbsp; of course you have to adjust your expression to not take these padded data into account when doing the max string and if condition.&lt;/P&gt;&lt;P&gt;see attached (yes it does get a little complicated)&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 03:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786820#M61375</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-28T03:35:09Z</dc:date>
    </item>
    <item>
      <title>Disregarding chart dimension (x axis)</title>
      <link>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786868#M61380</link>
      <description>&lt;P&gt;here is a simpler alternative to padding&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 13:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1786868#M61380</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-28T13:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding chart dimension (x axis)</title>
      <link>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1787981#M61497</link>
      <description>&lt;P&gt;Thanks a lot Edwin! This solution seems to have done the trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 15:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1787981#M61497</guid>
      <dc:creator>Aj_</dc:creator>
      <dc:date>2021-03-03T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Disregarding chart dimension (x axis)</title>
      <link>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1788062#M61510</link>
      <description>&lt;P&gt;yw&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 19:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Disregarding-chart-dimension-x-axis/m-p/1788062#M61510</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-03T19:36:06Z</dc:date>
    </item>
  </channel>
</rss>

