Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
renjithpl
Specialist
Specialist

Sort Issue with match function

Hi All,

I have an issue in sorting using match function.

I used below code.

=match ( REGION, 'Australia', 'New Zealand', 'Asia',  'Pacific', 'Europe', 'Americas')

It works fine, but my pivot has a MTD Value using set analysis,

my MTD set is:

=Sum({<Day=, Month=, Date={'>=$(=Date(MonthStart(Min(Date))))<=$(=Max(Date))'}>} [Day Actuals])

Problem is, there wont be data available for all countries on few days in a month,

If data available for all countries on a day, the sort works fine,

when not available it does not work, but my pivot gives MTD data but it reflects all the countries in pivot.

Is there any way i nullify Day in sort? or use this expression in sort and has any work around ?

Appreciate your thoughts.

Regards

Ren

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Perhaps this:

=match (only({<Day=>} REGION), 'Australia', 'New Zealand', 'Asia',  'Pacific', 'Europe', 'Americas')


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Perhaps this:

=match (only({<Day=>} REGION), 'Australia', 'New Zealand', 'Asia',  'Pacific', 'Europe', 'Americas')


talk is cheap, supply exceeds demand
renjithpl
Specialist
Specialist
Author

Works like charm ... Thanks much!!