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: 
Not applicable

Set Analysis Problem

I have this expression:

sum( {$<Month = {$(=Only(Month)-1)}>} if(  Flag <> 'Fail' , 1, 0) )

But this way doesn't work, the result is always 0...

Someone know what's happen?

Thanks.

Labels (1)
2 Replies
sebastiandperei
Specialist
Specialist

Hi,

With Only (Month), you need ALWAYS have a Month selected. Try with:

sum( {$<Month = {$(=Max(Month)-1)}>} if(  Flag <> 'Fail' , 1, 0) )

But for January Month this wont work, because the expression is not correctly made. Could you send a copy?

(hablás español?)

whiteline
Master II
Master II

What are your dimensions for this expression ? And what is the Flag ?