Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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 (3)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

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
MVP
MVP

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
MVP
MVP

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.