Skip to main content
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
23 Replies
isorinrusu
Partner - Creator III
Partner - Creator III

Best thing you can do is to create a new field containing the quarter, based on the creation or shipped date. Or 2 fields for each one of them.

The function is QuarterName().

Anil_Babu_Samineni

From which Date field we need to en count the Quarters? Can you explain result set if you have

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
himabinduch
Creator
Creator
Author

i created quarters based on shipped and creation dates. but i need i need count of created items and shipped items

himabinduch
Creator
Creator
Author

on created and shipped both fields we should use.

isorinrusu
Partner - Creator III
Partner - Creator III

Then you only have to create a simple table (for example), using the created quarter fields as dimensions and a count(distinct Item) as the exrpression.

himabinduch
Creator
Creator
Author

count( distinct item) will give the created item counts, i already done with that, i got stucked in shipping count of items. if you see my data there are different shipped_dates for each item so i have to calculate the count of shipped_items based on the quarter .

isorinrusu
Partner - Creator III
Partner - Creator III

Ok, I think I understand. So you don't want a chart, you want a KPI or something like that?

Then you'd have to use AGGR, as you're mentioning. Something like:

sum(aggr(count(Item),ShippedQuarter))

That will give you the number of items shipped per quarter.

Hope it helps.

Regards,

Sorin.

Anil_Babu_Samineni

This is the case you need to set up flag while loading to club single field. And that too in analysis you can use Flag for bifurcate reports

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
himabinduch
Creator
Creator
Author

i want create a pivort chart with the above expressiones