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: 
Anonymous
Not applicable

How to aggregate date

Hi there,

i have to maintain one excel sheet where data is pasted daily. I have to take weekday avg.((mon + tue + wed + thu + fri ) / 5) and weekend day avg.((sat. + sun)/2) and weekly avg. I cant able to write expression that can do this in qlikview. please help me error loading image.

2 Replies
martin59
Specialist II
Specialist II

Hi,

You have to try this :

For WeekDayAvg

avg( if ( WeekDay(Date) < 5 , Value ) )


For WeekEndAvg

avg( if ( WeekDay(Date) > 4 , Value ) )


Anonymous
Not applicable
Author

Hi Martin,

Thank you for your reply. But this expression is not working.

Thanks,

Samay