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: 
AnnaEKinch
Partner - Contributor III
Partner - Contributor III

Set analysis possible?

Hi!

I need to count the number of orders that have been approved on a certain date.

The date I am showing in the table is "TobeReceivedDate". I need to count the number of Orders "TobeReceived" on that date and the number of orders "Approved" on that date.

My calendar is based on totally different dates so I can't use that.

This is my dataset:

TobeReceivedDayTo be Received Date%ORDERKEYApproved DateApprovedDay
Mo2021-09-064726745|1|32021-09-06Mo
Mo2021-09-064730533|1|12021-09-06Mo
Mo2021-09-064730689|1|12021-09-06Mo
Mo2021-09-064736931|2|12021-09-06Mo
Mo2021-09-064736931|3|12021-09-06Mo
Tu2021-09-074734551|1|12021-09-06Mo
We2021-09-084731509|1|12021-09-06Mo
We2021-09-084731509|1|22021-09-06Mo
Th2021-09-094726745|1|12021-09-06Mo
Th2021-09-094733620|1|12021-09-06Mo
Th2021-09-094738134|1|12021-09-06Mo
Th2021-09-094738134|1|22021-09-06Mo
Fr2021-09-104726745|1|22021-09-06Mo
Fr2021-09-104733834|1|12021-09-06Mo
Fr2021-09-104737933|1|12021-09-06Mo

 

This is the result I wish to achieve:

TobeReceivedDayTo be Received DateCount of TobeReceivedOrdersCount of ApprovedDate Orders
Mo2021-09-06515
2 Replies
Saravanan_Desingh

Try something like this,

Dimension: Approved Date

Expressions:

Only({<[To be Received Date]=p([Approved Date])>}TobeReceivedDay)

Only({<[To be Received Date]=p([Approved Date])>}[To be Received Date])

Count({<[To be Received Date]=p([Approved Date])>}[To be Received Date])

Count([Approved Date])

Hide the Dimension (Approved Date)like this,

commQV08.PNG

Output:

commQV09.PNG

AnnaEKinch
Partner - Contributor III
Partner - Contributor III
Author

Hi! Thanks, I couldn't get it to work in Qlik Sense. I made a new table in the data model instead.