Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ecabanas
Creator II
Creator II

Calculate orders in a year groupby costumer

Hi,

 

I would like to do that in the load script to create a table with the customer and the number of orders in a year

something like this,

2019-05-16_15h37_33.png

But I do not have any idea how to do that

Any advice or literature to investigate?

thanks

1 Reply
Lisa_P
Employee
Employee

You need to define the Year field, then you can use the Group by function in the load script to aggregate the orders by year.

eg.
Orders:
Load Customer,
'Order ID',
Date,
Year(Date) as Year
From .....

Load 'Order Id',
Count('Order Id') as YearlyOrders
Resident Orders
Group by Year;
This will allow you to create a table showing as per above in your app.