Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
rob_nubox
Contributor
Contributor

Help: need to count "same month sales" (month(field1) = month(field2) and Sale=1)

Hi! As the title says, i have the following situation.

Lead Create Date = A

Sales Close Date = B

Status (When its a final sale) = 'Closed | Won'

 

How can i setup a count that lets me combine all three things? I'm thinking:

Count all ID's where the month of date A = Month of Date B, and the Status = 'Closed | Won'

 

Can anybody help me out? I've been struggling all weekend.

Labels (3)
1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

Update below if your field names are different, but i believe this is what you are asking for...

Count({<[ID] = {"=[Lead Create Date] = [Sales Close Date]"}, [Status] = {'Closed | Won'} >}   [ID])

View solution in original post

2 Replies
stevejoyce
Specialist II
Specialist II

Update below if your field names are different, but i believe this is what you are asking for...

Count({<[ID] = {"=[Lead Create Date] = [Sales Close Date]"}, [Status] = {'Closed | Won'} >}   [ID])

rob_nubox
Contributor
Contributor
Author

Beautiful!! Thank you very much!!!

The solution went perfectly, and the final formula went like this:

Count({<[Deal ID] = {"=Month([Create Date]) = Month([Close Date])"}, [EsVenta] = {'Si'} >} [Deal ID])