Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

How to show count of distinct id irrespective of year and month selection ?

Hi All ,

I want to count the user id irrespective of year and month

=Count(DISTINCT id)

THanks,

8 Replies
sunny_talwar

May be this

Count(DISTINCT {<Month, Year>} id)

suvechha_b
Creator III
Creator III
Author

Hi Sunny ,

The expression not working correctly ,

Count(DISTINCT {<Month, Year>} id)


Please suggest.

Thanks,

ali_hijazi
Partner - Master II
Partner - Master II

What Sunny shared should work, unless your column names are different!!

Qlik is case sensitive

or maybe you need to add '=' sign if you are displaying the count in a text object?

I can walk on water when it freezes
tresesco
MVP
MVP

Are you using this expression in a chart? Are Month and Year are dimensions there? If so, you might have to use identifier TOTAL

suvechha_b
Creator III
Creator III
Author

Hi Tresesco ,

I am using this expression in a chart . No the 'Month' and 'Year' are not present in the chart .

Please see the image attached.

Capture1.PNG

tresesco
MVP
MVP

In that case Sunny's expression should work. Could you provide sample app and describe the expected output?

sunny_talwar

What isn't working in the attached image? Can you elaborate a little more? What did you expect to see when Year and Month are selected?

qlik4asif
Creator III
Creator III

=Count( DISTINCT {<Month,Year>}Total id)