Skip to main content
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Syntax for distinct count using alternate states

I am having a hard time coming up with the correct syntax for this simple calculation...

I need to do a distinct count of Seq #'s in Alternate State A and Alternate State B.

Here is what I've got...

=count({StateA} Distinct [Seq#]

Simple but it's not affected by the default state filters and I want it to be.

What do I need to add to make this formula work with other filters?

Thanks in advance:)

5 Replies
crusader_
Partner - Specialist
Partner - Specialist

Hi,

Try this one:

=count({$*StateA} distinct [Seq#])

Regards,

Andrei Kaliahin

sagarkharpude
Creator III
Creator III

Check this:

count({[Group1]}DISTINCT [Seq#])

Not applicable
Author

This worked! Thank you!

Not applicable
Author

This didn't work for me. I think you need the $* to listen to all other filters.

sagarkharpude
Creator III
Creator III

Hi,

If the issue is resolved, Marked it as correct answer.