Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
siddharthsoam
Partner - Creator II
Partner - Creator II

How to fetch multiple values from the filter using max function

Hi

I want to fetch multiple values from month filter where the month is the maximum in a quarter

snip1.JPG

for ex it should show me data of the maximum month for quarter 2 i.e. Sep, when I select Q1 and Q2 it should show me data for Sep month and June month summed up

1 Solution

Accepted Solutions
shraddha_g
Partner - Master III
Partner - Master III

18 Replies
poojashribanger
Creator II
Creator II

Hi,

You can use this expression

max(total MonthName)

OmarBenSalem

Create a new dimension as follow:

=aggr(max({$<Month = p({1<Month={"$(=max(Month))"}>})>} Month ),Month)

result:

Capture.PNG

Capture.PNG

siddharthsoam
Partner - Creator II
Partner - Creator II
Author

Hi Omar

This function is returning me a single value. I want it to return me multiple values for quarter Q2 and Q3 that is 6 and 9.

Also it would be great if we take months filter not in numbers but in as text 1 for Apr and thereafter

snip_cbu_new.JPG

shraddha_g
Partner - Master III
Partner - Master III

Please refer attached..Is this what s required?

siddharthsoam
Partner - Creator II
Partner - Creator II
Author

Hi Shraddha that's exactly what I want minus the year

shraddha_g
Partner - Master III
Partner - Master III

PFA

siddharthsoam
Partner - Creator II
Partner - Creator II
Author

Hi Shraddha

I am using the following expression

Concat( distinct { <Quarters=p(Quarters)>} Month(QuarterEnd),',')

but still not able to get the desired result. Its showing nothing on the KPI.

siddharthsoam
Partner - Creator II
Partner - Creator II
Author

can you please share the qvf

shraddha_g
Partner - Master III
Partner - Master III

Do you have QuarterEnd Field Calculated in Backend?

if not,

Concat( distinct { <Quarters=p(Quarters)>} Month(QuarterEnd(DateField)),',')

At the place of DateField use your appropriate DateField