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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Median of my data

I am new to Qlikview, and would like to obtain the median of a count distribution.

I have the following IDs.

ID
1
2
3
1
2
3
4
5
6
7
8
9
10
3
1
2
8
9
10

I would like to find the median, in this case, after sorting and adding, would be:

IDcount(ID)
41
51
61
71
82
92
102
13
23
33

the median of ID is 10 (10th position of the total 19 IDs). 

How should the expression be?

thanks!

3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

I've answered to you, please check previous answer

Use ID as dimension,

your expression is simply Count(ID)

and in sort promote Count(ID) and sort by numerivìcal values ascending

hope it helps

Not applicable
Author

Please see attached your solution.

Added in other percentiles for you to check out

Not applicable
Author

To add, a median is a middle set of all values. the 10th position is not ID 10 since there are values that appear more than once. If you want a median for a set of distinct values then that is a different story.