<?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: When we select multiple options from filter, get the only maximum selected option from filter pane. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425130#M96060</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285770"&gt;@LRuCelver&lt;/a&gt;&amp;nbsp;Thanks for replying,&lt;BR /&gt;&lt;BR /&gt;By default if no selection made right now I am showing the data of latest month for specific year, year is dimension&lt;BR /&gt;for example:- for 2021 i am showing data of 2021 dec, &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for 2022 I am showing data of 2022 dec.&lt;BR /&gt;for 2024 I am showing data for 2022 Feb ( which is latest month data in 2024) so this is working perfectly right now,&lt;BR /&gt;Now I need to handle the scenario when selection made if there is one selection made let's say 2021-jun then bar should only show data for 2021-jun,&lt;BR /&gt;But multiple selection made then let's say &lt;STRONG&gt;2021-jun, 2021-july&lt;/STRONG&gt; then it should show the data of 2021-july&lt;BR /&gt;another scenario is if&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;2021-jun, 2021-july, 2022-jan, 2022-feb&lt;/STRONG&gt; then it should show 2 bars, 1st for 2021 where data should be 2021-july and 2nd for 2022 where data should be 2022-feb.&lt;BR /&gt;&lt;BR /&gt;I know this is complex but let me know if you get it or not.&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 08:48:26 GMT</pubDate>
    <dc:creator>Lucius_Artorius_Castus</dc:creator>
    <dc:date>2024-02-29T08:48:26Z</dc:date>
    <item>
      <title>When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425038#M96046</link>
      <description>&lt;P&gt;Hi, I am implementing functionality where when i select multiple options from filter pane, I have bar chart where I am showing yearly data so I want to only show the maximum month-year data from the selection per year,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lucius_Artorius_Castus_0-1709187895856.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160917i72706FBCEE0143D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lucius_Artorius_Castus_0-1709187895856.png" alt="Lucius_Artorius_Castus_0-1709187895856.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Right now it should only show Apr-2021 data, i select option from 2021 and 2022 then it should show the 2 bar with maximum month from selection.&lt;BR /&gt;&lt;BR /&gt;Thanks, let me know it is possible or not.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 06:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425038#M96046</guid>
      <dc:creator>Lucius_Artorius_Castus</dc:creator>
      <dc:date>2024-02-29T06:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425048#M96047</link>
      <description>&lt;P&gt;Please clarify:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;always show data from all possible years&lt;/LI&gt;
&lt;LI&gt;show data from all possible months combined if there is no [Month-Year] selection&lt;/LI&gt;
&lt;LI&gt;show data from the largest month selected for every year if there is a&amp;nbsp;[Month-Year] selection
&lt;UL&gt;
&lt;LI&gt;If Apr-2023 and Jun-2022 are selected what should be shown:
&lt;UL&gt;
&lt;LI&gt;Apr-2023 and Jun-2022 or&amp;nbsp;Jun-2023 and Jun-2022 or&amp;nbsp;Apr-2023 and Apr-2022?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 29 Feb 2024 07:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425048#M96047</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-02-29T07:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425130#M96060</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285770"&gt;@LRuCelver&lt;/a&gt;&amp;nbsp;Thanks for replying,&lt;BR /&gt;&lt;BR /&gt;By default if no selection made right now I am showing the data of latest month for specific year, year is dimension&lt;BR /&gt;for example:- for 2021 i am showing data of 2021 dec, &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for 2022 I am showing data of 2022 dec.&lt;BR /&gt;for 2024 I am showing data for 2022 Feb ( which is latest month data in 2024) so this is working perfectly right now,&lt;BR /&gt;Now I need to handle the scenario when selection made if there is one selection made let's say 2021-jun then bar should only show data for 2021-jun,&lt;BR /&gt;But multiple selection made then let's say &lt;STRONG&gt;2021-jun, 2021-july&lt;/STRONG&gt; then it should show the data of 2021-july&lt;BR /&gt;another scenario is if&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;2021-jun, 2021-july, 2022-jan, 2022-feb&lt;/STRONG&gt; then it should show 2 bars, 1st for 2021 where data should be 2021-july and 2nd for 2022 where data should be 2022-feb.&lt;BR /&gt;&lt;BR /&gt;I know this is complex but let me know if you get it or not.&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 08:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425130#M96060</guid>
      <dc:creator>Lucius_Artorius_Castus</dc:creator>
      <dc:date>2024-02-29T08:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425186#M96069</link>
      <description>&lt;P&gt;This shows the only remaining Year-Month for every Year after applying the set analysis:&lt;/P&gt;
&lt;PRE&gt;{&amp;lt;[Month-Year]={$(=Concat(Aggr(Chr(39) &amp;amp; Max([Month-Year]) &amp;amp; Chr(39), Year), ','))}&amp;gt;}&lt;BR /&gt;Only([Month-Year])&lt;/PRE&gt;
&lt;P&gt;Replace the Only() expression with whatever you need it to be.&lt;/P&gt;
&lt;P&gt;Here are the results for multiple selections over different years:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LRuCelver_0-1709199849324.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160948iB6D9C4CB30F60FF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LRuCelver_0-1709199849324.png" alt="LRuCelver_0-1709199849324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425186#M96069</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-02-29T09:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425303#M96086</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285770"&gt;@LRuCelver&lt;/a&gt;&amp;nbsp;this is what I want, i tried above expression but when I selecte more than one selection chart is not showing up, this is my expression&lt;BR /&gt;&lt;STRONG&gt;SUM({&amp;lt;[CREATED_DATE-Year-Month]={$(=Concat(Aggr(Chr(39) &amp;amp; Max([CREATED_DATE-Year-Month]) &amp;amp; Chr(39), Year([CREATED_DATE-Year-Month])), ','))}&amp;gt;} Only([FA_QTY_FUNC] * [AVERAGE_PRICE]))&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Let me know what changes I should make it to work&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 13:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425303#M96086</guid>
      <dc:creator>Lucius_Artorius_Castus</dc:creator>
      <dc:date>2024-02-29T13:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425354#M96092</link>
      <description>&lt;P&gt;You don't need the Only():&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SUM(
    {&amp;lt;[CREATED_DATE-Year-Month]={$(=Concat(Aggr(Chr(39) &amp;amp; Max([CREATED_DATE-Year-Month]) &amp;amp; Chr(39), Year([CREATED_DATE-Year-Month])), ','))}&amp;gt;} 
    [FA_QTY_FUNC] * [AVERAGE_PRICE]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Feb 2024 14:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425354#M96092</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-02-29T14:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425810#M96132</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lucius_Artorius_Castus_0-1709289539864.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/161057i9C988B1C504C979C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lucius_Artorius_Castus_0-1709289539864.png" alt="Lucius_Artorius_Castus_0-1709289539864.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Still not working with bar chart, maybe because of year dimension?&lt;BR /&gt;This is the expression im using for dimension year &lt;STRONG&gt;Year([CREATED_DATE-Year-Month])&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lucius_Artorius_Castus_1-1709289597948.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/161058iF2D42959975B1075/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lucius_Artorius_Castus_1-1709289597948.png" alt="Lucius_Artorius_Castus_1-1709289597948.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 10:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425810#M96132</guid>
      <dc:creator>Lucius_Artorius_Castus</dc:creator>
      <dc:date>2024-03-01T10:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425832#M96133</link>
      <description>&lt;P&gt;You are correct.&lt;/P&gt;
&lt;P&gt;You need to add a new field&amp;nbsp;&lt;STRONG&gt;[CREATED_DATE-Year]&lt;/STRONG&gt; using&amp;nbsp;&lt;STRONG&gt;Year([CREATED_DATE-Year-Month])&lt;/STRONG&gt; as the calculation expression in the script to the data model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 11:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2425832#M96133</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-03-01T11:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2426351#M96189</link>
      <description>&lt;P&gt;Ok but right now I don't have option of script, I have only one option with chart expression, is there anything we can do about it?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 05:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2426351#M96189</guid>
      <dc:creator>Lucius_Artorius_Castus</dc:creator>
      <dc:date>2024-03-04T05:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2426419#M96199</link>
      <description>&lt;P&gt;This expression always returns the sum for the latest possible&amp;nbsp;&lt;STRONG&gt;[CREATED_DATE-Year-Month]&lt;/STRONG&gt;. No set analysis or complex Aggrs needed:&lt;/P&gt;
&lt;PRE&gt;FirstSortedValue(Aggr(Sum([FA_QTY_FUNC] * [AVERAGE_PRICE]), [CREATED_DATE-Year-Month]), -[CREATED_DATE-Year-Month])&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;It also works with the "year" as the dimension:&lt;/P&gt;
&lt;PRE&gt;Aggr(Year([CREATED_DATE-Year-Month]), [CREATED_DATE-Year-Month])&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Mar 2024 07:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2426419#M96199</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-03-04T07:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: When we select multiple options from filter, get the only maximum selected option from filter pane.</title>
      <link>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2426907#M96229</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/285770"&gt;@LRuCelver&lt;/a&gt;&amp;nbsp;This worked, Thanks. I appreciate your time and help, I learned so much from you.&lt;BR /&gt;Very very thank you so much, My friend.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 06:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/When-we-select-multiple-options-from-filter-get-the-only-maximum/m-p/2426907#M96229</guid>
      <dc:creator>Lucius_Artorius_Castus</dc:creator>
      <dc:date>2024-03-05T06:18:24Z</dc:date>
    </item>
  </channel>
</rss>

