Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
KrazVerty
Contributor
Contributor

Minimum date in table( set analysis )

Hi,everyone
I'm beginner
I have a date in my table as a dimension
I want to keep only the minimum values in the table( yellow)
and remove(exclude) the red ones,because I want to count values at the beginning of the month

KrazVerty_0-1605538868948.png

how can i do that ?

Labels (4)
1 Solution

Accepted Solutions
MayilVahanan

Hi @KrazVerty 

Try like below

=Count({<Date= {$(=Chr(39)&Concat(Distinct Aggr(Min([Date]),MonthYear),Chr(39)&','&Chr(39))&Chr(39))}>}Values)

Hope you have MonthYear field in ur data model, else, bring it out 

Load Date, MonthName(Date) as MonthYear from source;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
MayilVahanan

Hi @KrazVerty 

Try like below

=Count({<Date= {$(=Chr(39)&Concat(Distinct Aggr(Min([Date]),MonthYear),Chr(39)&','&Chr(39))&Chr(39))}>}Values)

Hope you have MonthYear field in ur data model, else, bring it out 

Load Date, MonthName(Date) as MonthYear from source;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
KrazVerty
Contributor
Contributor
Author

Thanks a lot !
Your  reply helped me

MayilVahanan

Hi @KrazVerty 

Can you close the thread.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.