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: 
ali_hijazi
Partner - Master II
Partner - Master II

Median; how to?

Dear

I got a pivot table (check attached) with one expression:

(sum
       (
              {
                     <
                          
Flag = {'Sales'}
                           ,
[Payroll Month]=
                           ,
[Payroll Year]=
                          
                     >
              }
             
if(
                     (
isnull(DeactivationDate) or DeactivationDate > PeriodDate)
                     
and PeriodDate >= num(addMonths(Date($(vForeCastDate)),-11)) and PeriodDate<=num(DayStart(MonthEnd(date($(vForeCastDate))))) ,AmountInUSD,0
                 )
    )
 
)
  /
[Selling Area]

this expression is giving correct results

now I want to calculate the Median of the values displayed in another column

As per the attached excel sheet the Median is the value 9,327

I used Median(above_expression) but got nulls as per attached image

Please advise

I can walk on water when it freezes
Labels (1)
0 Replies