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

Set Analysis Query..

Hi,

Can someone help me correct this Set Analysis

Count({$<ShipmentStatus={'READY'}, DATE={$(=Today())'}>}DISTINCT(CarrierID))


My Requirement is Count of Distinct 'CarrierID' based on ShipmentStatus='READY' for only Today.

How to achieve this?

1 Solution

Accepted Solutions
MuraliPrasath
Creator III
Creator III
Author

Hi Sunny,

Finally this is worked. Thank you.

Count({$<ShipmentStatus={'READY'}, DATE={"=date($(vToday))"}>}DISTINCT(CarrierID))

View solution in original post

8 Replies
swuehl
MVP
MVP

maybe there is just a single quote missing in DATE set modifier:

Count({$<ShipmentStatus={'READY'}, DATE={'$(=Today())'}>}DISTINCT(CarrierID))

sunny_talwar

May be this:

Count({$<ShipmentStatus={'READY'}, DATE={"$(=Date(Today(), 'YourDATEFieldFormat))"}>}DISTINCT(CarrierID))

MuraliPrasath
Creator III
Creator III
Author

Still no luck !!  My Date fileld name is DATE..

Count({$<ShipmentStatus={'READY'}, DATE={"$(=Date(Today(),'DATE'))"}>}DISTINCT(CarrierID))

sunny_talwar

Not DATE here

Count({$<ShipmentStatus={'READY'}, DATE={"$(=Date(Today(),'DATE'))"}>}DISTINCT(CarrierID))


but the format, like MM/DD/YYYY or DD/MM/YYYY or DD-MMM-YYYY. Whatever format DATE has, need to go within the single quotes.


HTH


Best,

Sunny

MuraliPrasath
Creator III
Creator III
Author

Hi Sunny,

Still no luck!!

Count({$<ShipmentStatus={'READY'}, DATE={"$(=Date(Today(),'MM/DD/YYYY'))"}>}DISTINCT(CarrierID))

sunny_talwar

Have you made sure that you have CarrierID for today's date where ShipmentStatus = 'READY'??

avinashelite

have you checked the variable value what your getting ?? and make sure that both the dates have the same format

MuraliPrasath
Creator III
Creator III
Author

Hi Sunny,

Finally this is worked. Thank you.

Count({$<ShipmentStatus={'READY'}, DATE={"=date($(vToday))"}>}DISTINCT(CarrierID))