Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculating average on time drill down

Hi Experts,

I have created drill down menu for Time(Year-Month-Day-Minute).I have values available for days of month.

ex. for month-5

day    value

1        a

2        b

3        c

..        ..

31      d

For Month value, I want to calculate average of day values.

for month 5, monthVal= avg(a+b+c+...d)

So when i drill up from day to month, it will show me average value of all days i.e monthVal of that particular month.

Please help

Thank You

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

Try like this

In expression

IF(GetCurrentField(DrillDownGroupName)='Month',Avg(Value),'Default Calculation')

Hope it helps you

View solution in original post

5 Replies
Not applicable
Author

Hi,

Try like this

In expression

IF(GetCurrentField(DrillDownGroupName)='Month',Avg(Value),'Default Calculation')

Hope it helps you

Not applicable
Author

Hi,

This is not give a proper solution then please post your sample file

Not applicable
Author

hey Thanks, Its working

v_iyyappan
Specialist
Specialist

Hi,

If u got correct solution means please closed the thread and give mark. because its motivate for us.

Not applicable
Author

If its working then mark it as correct answer