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)
Anonymous
4 years agoNot applicable
Thanks but still show inaccurate report, it supposed to output a total of 8 entries but it shows 22 entries 😞
Fowmy
Super User
4 years agoAnonymous
Please share a dummy file with this calucaltion to check and understand your scenario
- Anonymous4 years agoNot applicable
Hello Fowmy
Here ya go
https://drive.google.com/drive/folders/1Ipqht-1wSOMu2kcdx5oJ5f5CU4aqsOnT?usp=sharing
- hnguy714 years ago
Super User
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)- Anonymous4 years agoNot applicable
You really are a Sage! Thanks master!!