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: 
cmutombo
Contributor III
Contributor III

COUNT if two conditions

Hi Communauty, 

I have an issue of syntax in formula (expression) COUNT if two conditions.

Is this : =Count({$<[Payment Month]= {"$(=Month(Date(Today() -1)))"}>} {$<POT={'Paid on Time'}>}POT)

Condition 1 is  Current Month (minus 1 day)

Condition 2 is  POT = "Paid on Time"

But is doesnt run (Error). I want to Know where I mistake in the Syntax ?

Help, Please 

Labels (1)
3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

IT should be as below.

Count({$<[Payment Month]= {"$(=Month(Date(Today() -1)))"},POT={'Paid on Time'}>}POT)

 

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
cmutombo
Contributor III
Contributor III
Author

Thank you very much ! 

Perfectly !

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

If you got the answer, please mark the post as correct and like relevant post.

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!