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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
iahmadmca1
Contributor III
Contributor III

Date division based on AM and PM

Team,

I just want to ask something regarding date division based on AM and PM as for example.

I have one date column like DATE which contains the both date like AM and PM I want to separate average of AM date and PM date.Please refer the below table for more details.

Date

01/02/2017 AM

01/03/2017 PM
01/04/2017 AM
01/05/2017 PM

Need to calculate the average of 01/02/2017 AM,01/04/2017 AM, and 01/03/2017PM,01/05/2017 PM both AM and PM average I need to calculate separate; could you please help me to do this requirement.

Thanks,

Irshad Ahmad

3 Replies
Anonymous
Not applicable

Like this??

load Pick(Flag,'AM','PM') as type,avg(Value) Group by Flag;

Load *,WildMatch(Date,'*AM*','*PM*') as Flag inline

[Date,Value

01/02/2017 AM,10

01/03/2017 PM,20

01/04/2017 AM,30

01/05/2017 PM,40];

MK_QSL
MVP
MVP

like this?

iahmadmca1
Contributor III
Contributor III
Author

Thanks, Manish.