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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Calculate Median

Hi All,

I have the columns Age and Profile . I have to calculate the Median Age for Profile as Dimension.

Help me to Calculate the Median(Age) in QlikView .

Thanks in Advance ....

Regards,

Chakravathy

Labels (1)
3 Replies
Anonymous
Not applicable
Author

Use the median() function:

median ( [{set_expression}] [ total [<fld {,fld}>] ] expression )
Returns the aggregated median of expression iterated over the chart dimension(s).

This function has the same limitations for nested aggregation as the avg function. The median function supports sets and the total qualifier in the same way as the avgfunction.

Examples:
median( X )

median( X*Y/3 )

median( total X )

median( total <Group> Price )

Not applicable
Author

Thanks Johannes ,

For your quick reply . Thanks for your help.

Regards,

Chakravarthy.

Not applicable
Author

Are there any resources I can turn to that will explain how to unpack and apply the code in this function?

Specifically,( [{set_expression}] [ total [<fld {,fld}>] ] expression )

Best,

Jens