Forum Discussion
Anonymous
4 years agoNot applicable
Count using different criteria on two columns
Helloo, how to count entries on column "Mailbox" where status is = "Queried - Onshore", "Queried - PO", "Oustanding - Sent to Rudy", "Can't Book", "Pending - Audit", "Pending - KL Audit", "Outstandi...
- 4 years ago
Hi Anonymous ,
Try this:
Adhoc = VAR _MailType = "ADHOC" VAR _CriteriaArr = { "Queried - Onshore", "Queried - PO", "Oustanding - Sent to Rudy", "Can't Book", "Pending - Audit", "Pending - KL Audit", "Outstanding", "Not Started" } RETURN CALCULATE(COUNTROWS ('CA Mailbox'), 'CA Mailbox'[Status] IN _CriteriaArr,'CA Mailbox'[Mailbox] = _MailType)
hnguy71
Super User
4 years agoHi Anonymous ,
Try this:
Adhoc =
VAR _MailType = "ADHOC"
VAR _CriteriaArr =
{
"Queried - Onshore",
"Queried - PO",
"Oustanding - Sent to Rudy",
"Can't Book",
"Pending - Audit",
"Pending - KL Audit",
"Outstanding",
"Not Started"
}
RETURN
CALCULATE(COUNTROWS ('CA Mailbox'), 'CA Mailbox'[Status] IN _CriteriaArr,'CA Mailbox'[Mailbox] = _MailType) Anonymous
4 years agoNot applicable
You really are a Sage! Thanks master!!