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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
himabinduch
Creator
Creator

Aggr Function

Hi All,

i have 3 fields as Item, Item_creation date and item_shipped date one item can have multiple Shipped date but only one creation date.

now i want the data as based on the quarter i need count of created items and shipped items the data is as below

   

ItemItem_creationitem_shipped
CD891/8/2016 15:4611/22/2016 20:16
CD891/8/2016 15:4612/6/2016 20:17
CD891/8/2016 15:4612/13/2016 20:17
CD891/8/2016 15:4612/20/2016 20:16
CD891/8/2016 15:463/21/2017 21:15
CD891/8/2016 15:463/21/2017 21:15
CD891/8/2016 15:466/20/2017 21:16
CD903/8/2017 10:547/11/2017 23:46
CD911/8/2016 15:468/3/2016 21:16
CD911/8/2016 15:468/23/2016 21:16
CD911/8/2016 15:469/7/2016 21:15
CD911/8/2016 15:469/12/2016 21:16
CD911/8/2016 15:469/21/2016 21:16
CD911/8/2016 15:4610/12/2016 21:16
CD911/8/2016 15:4611/1/2016 0:01
CD911/8/2016 15:4611/1/2016 0:01
CD911/8/2016 15:4611/29/2016 20:17
CD911/8/2016 15:4612/5/2016 2:47
CD911/8/2016 15:4612/18/2016 20:17
CD911/8/2016 15:4612/20/2016 20:16
CD911/8/2016 15:4612/28/2016 20:17
CD911/8/2016 15:463/1/2017 20:15
CD911/8/2016 15:464/7/2017 1:04
CD911/8/2016 15:467/5/2017 21:16
CD911/8/2016 15:467/14/2017 3:27
Labels (1)
23 Replies
himabinduch
Creator
Creator
Author

Hi Vikas,

thanks for the reply i want to get the shipped items created in the same year

thanks,

hima.

vikasdesai
Partner - Contributor III
Partner - Contributor III

Hello

Please use Following Expression

Count({<Quarter={$(=max(Quarter))}>}item_shipped)

Regards

Vikas

Anonymous
Not applicable

HELLO Apprentice ,

FROM THIS U WILL GET BY QUARTER

Count({<Quarter={$(=max(Quarter))}>}[FieldName])


FROM THIS U WILL GET COUNT OF SHIPPED PRODUCT

Count(DISTINCT{$<Event = {'Creation'}>}Item)

Count({$<Event = {'Shipped'}>}Item)



REGARDS
ROHIT LOHANI
MarcoWedel
MVP
MVP

please try to explain using a consistent example including sample data, expected result and method of calculating those results.

thanks

regards

Marco