Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Distinct values

Hi,

Could you please resolve the issue

17 Replies
its_anandrjs
Champion III
Champion III

You can


=Count(DISTINCT flightNo)


or


=Count(flightNo)

Not applicable
Author

i cant use count( distinct flightno)

this will count distinct flights of whole month.

but i want that it should calculate distinct flights of day wise not month wise  and i want  to calculate monthly data.

MK_QSL
MVP
MVP

COUNT({<[service used] = {'GPU'}>}flightno)/Count(TOTAL flightno)

its_anandrjs
Champion III
Champion III

Use pivot table and use this expression for the calculation

=Count(DISTINCT flightNo)


or


=Count(flightNo)

Not applicable
Author

according to my table  on 22nd flight B has used two service  but i want to calculate it as one but on 23 rd b has again used two service so i want to count it as 1  and on 24th b has used 1 service so i count as one  so total count should calculate like this . like wise for every flight ..

MK_QSL
MVP
MVP

You are mentioning dates which you haven't given in your sample data.

Can you provide some more data please?

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Assuming you have a table or chart with a month field (month) as a dimension:-

     =Sum(Aggr(Count(Distinct flightno), date, month))

This will count distinct flights on each day in the month.

HTH

Jonathan   

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks ]