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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis

Hi all, need help,

i have a set - COUNT({<StatusHistory.YearMonth = {">=$(=MonthStart(min(StatusHistory.YearMonth)))"}>}distinct SabID) , its counts sabid at month start and works fine, now i wan to count sabid of next month monthstart,

COUNT({<StatusHistory.YearMonth = {">=$(=MonthStart(min(StatusHistory.YearMonth),+1))"}>}distinct SabID) and its returs me 0..

please help

17 Replies
Not applicable
Author

>= MonthEnd instead of Monthstart+1

MK_QSL
MVP
MVP

COUNT({<StatusHistory.YearMonth = {'>=$(=MonthStart(AddMonths(min(StatusHistory.YearMonth),1))'}>}Distinct SabID)

CELAMBARASAN
Partner - Champion
Partner - Champion

What is the value format in YearMonth Field?

How you created this field?

MK_QSL
MVP
MVP

COUNT({<StatusHistory.YearMonth = {'>=$(=Date(MonthStart(Min(StatusHistory.Date),1),'MMM YYYY'))'}>}Distinct SabID)

Change 'MMM YYYY' according to your YearMonth format... i.e. YYYY MMM or YY MMM

Not applicable
Author

its still return my 0...

PrashantSangle

Hi,

I am just modifying  your set analysis because it is almost close.

COUNT({<StatusHistory.YearMonth = {">=$(=MonthStart(AddMonths(min(StatusHistory.YearMonth),+1)))"}>}distinct SabID)


Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

thanks for set analysis, but i still get 0.. there is 2 pics, firs what i get now, and secont what i need:

MK_QSL
MVP
MVP

It will be better if you load your sample apps or sample data file.

Not applicable
Author

its impossible, apps ~600mb...