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: 
bhaddour
Contributor II
Contributor II

Countifs

Hi everyone, 

I have customers with their respective creation date, type of customer

how can I create a KPI that shows  only customer for a certain type AND for previous month ( October 2019) without using filters?

Previous month :
=count(if(Month=month(Today())-1,[SAP# (Sold to)]))

I tried : 

Count({<[Wholesale/Franchisee/Indirect Wholesale/Consignment] = {'WH'}, Month= (month(today())>} [SAP# (Sold to)])

1 Reply
Kashyap_R
Partner - Specialist
Partner - Specialist

 

Hi

Try this

Count({<

[creation date]={">=$(=Date(Monthstart(AddMonths(Today(),-1)))) <=$(=Date(MonthEnd(AddMonths(Today(),-1))))"},[Wholesale/Franchisee/Indirect Wholesale/Consignment] = {'WH'}

>}[SAP# (Sold to)])

Hope this helps

Thanks

 

Thanks and Regards
Kashyap.R