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

count of Product id's for different calendar dates:

Hi Qliks,

I have two calendar dates order date, delivery date and product id's 

i want to create filter pane which has field "month " that derived from dates.whenever user clicks on particular month

table should filter count of ordered product id's in that month and count of delivered product id's in same month.

How can i do that.  Suggestions please....

Labels (2)
1 Solution

Accepted Solutions
lorenzoconforti
Specialist II
Specialist II

If I understood correctly, you want to have a filter where you select a specific month. After you've selected the month, you want to count the number of product id ordered for that month and count the number of product id delivered for that month.

This assumes you have two dates: the date the product was ordered (let's call it orderDate) and the date the product was delivered (deliveryDate)

First of all, your month field you are filtering with needs to be unrelated to the data table (otherwise you will filter your data table when selecting the month)

Then you can count the two values you are looking for by using set analysis. Something like this:

products ordered in the month: count({orderDate = p(month)} productID)

products delivered in the month: count({deliveryDate = p(month)} productID)

 

If I got the requirements wrong, can you please post your application or an example?

View solution in original post

6 Replies
stonecold111
Creator III
Creator III
Author

lorenzoconforti
Specialist II
Specialist II

If I understood correctly, you want to have a filter where you select a specific month. After you've selected the month, you want to count the number of product id ordered for that month and count the number of product id delivered for that month.

This assumes you have two dates: the date the product was ordered (let's call it orderDate) and the date the product was delivered (deliveryDate)

First of all, your month field you are filtering with needs to be unrelated to the data table (otherwise you will filter your data table when selecting the month)

Then you can count the two values you are looking for by using set analysis. Something like this:

products ordered in the month: count({orderDate = p(month)} productID)

products delivered in the month: count({deliveryDate = p(month)} productID)

 

If I got the requirements wrong, can you please post your application or an example?

stonecold111
Creator III
Creator III
Author

Okay,thanks, then how can I create single month field based on two calendar dates. 

stonecold111
Creator III
Creator III
Author

I think I can create two create two separate months for 2 different dates. Then I can pass selections between two fileds,. 

Expression s going to get effected by both filters.

Works well. Is there any alternative way to do this.just curious to know.

lorenzoconforti
Specialist II
Specialist II

I can't see any obvious alternative way

Can you post a picture of your database structure?

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

Try going through the concept of Date Island .

This may help you to get your requirement.

Thanks

Thanks and Regards
Kashyap.R