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: 
melissapluke
Partner - Creator
Partner - Creator

And in Set Analysis

Hi all,

I have a table where Region can be listed multiple times. I am looking to count Region only when Region has a status of Scheduled and a Status of Complete. If I do this it counts Region if it has either of those.

Count(distinct {<[Status]={'Scheduled','Complete'} >}[Region])

Essentially I want to do this, but i know the syntax isn't correct. 

Count(distinct {<[Status]={'Scheduled'} and [Status]={'Complete'} >}[Region])

Thanks!

Melissa

1 Solution

Accepted Solutions
Kushal_Chawda

try below

 

=Count(DISTINCT {<Region=p({<Status={'Scheduled'}>})*p({<Status={'Complete'}>})>}Region)

View solution in original post

2 Replies
Kushal_Chawda

try below

 

=Count(DISTINCT {<Region=p({<Status={'Scheduled'}>})*p({<Status={'Complete'}>})>}Region)
melissapluke
Partner - Creator
Partner - Creator
Author

Thank you, that works!