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

You can definitely create dummy data say 10-20 lines in excel file..

PrashantSangle

Hi,

Actually there is very small mistake

try this,

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


MonthStart() returns complete date like 1-5-2013

but you StatusHistory.YearMonth is in format of Kov 2010 i.e (Mar 2010)

therefore you have convert above expression using Monthname()


Hope this will help you,


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

attached to my firs post on top

PrashantSangle

Hi,

Is this solution work???

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 🙂
PrashantSangle

Hi,

Did you try my solution??

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

I missed yours replay, sorry.. but yours solution not work..

Not applicable
Author

count({<StatusHistory.YearMonth={">=$(=addmonths(monthstart(min(StatusHistory.YearMonth)),1)"}>}distinct SabID)

CELAMBARASAN
Partner - Champion
Partner - Champion

I'm guessing, if you provide how the YearMonth field is created. well that gives clear idea solve your problem.

Regards,

Celambarsan