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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
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