Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Samanehsorournejad
Creator
Creator

Only function

Hi every one,

I want to use Only function in order to show customer just the OrderID that they ShipDate is equal to OrderDate

I had try this :

Only({$<ShipDate=OrderDate>}OrderID)

it does not give me any error but does not show any OrderID (although there is some).

Please Guide me🤔

Labels (1)
2 Solutions

Accepted Solutions
Samanehsorournejad
Creator
Creator
Author

Hi Marco,

I had understand my fault, it works:

 

Only({$<OrderID={"=ShipDate=OrderDate"}>} OrderID)

 

😀

 

but is there any link or tutorial about this type of set analysis -?

Thanks a lot

View solution in original post

MarcoWedel
MVP
MVP

maybe this chapter about expression searches in set expressions might help:

https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAn...

 

please close your thread by accepting a solution if your question is answered.

thanks

Marco

View solution in original post

9 Replies
brunobertels
Master
Master

hi 

may be this 

Only({$<ShipDate={$(=OrderDate)}>}OrderID)

Samanehsorournejad
Creator
Creator
Author

Hi,

unfortunately, it did not work too

😞

MarcoWedel
MVP
MVP

In what context would you apply this expression?

Samanehsorournejad
Creator
Creator
Author

I have a table with some columns such as customer, OrderID, shipdate and orderdate. I had apply this expression for OrderID as measure.

I hope I had understand your question right

SunilChauhan
Champion II
Champion II

May be this

 

Only({$<ShipDate={"=OrderDate"}>}OrderID)

Sunil Chauhan
MarcoWedel
MVP
MVP

If there is only one ShipDate and OrderDate per OrderID, then one solution might be:

 

Only({$<OrderID={"=ShipDate=OrderDate"}>} OrderID)

 

 

In case you might have multiple shipments per order, then 

 

Only({$<OrderID={"=Min(ShipDate=OrderDate)"}>} OrderID)

 

 

 

should identify the Orders having shipments on the OrderDate.

Having a more granular ShipmentID for orders with multiple shipments, you could as well use

 

Only({$<ShipmentID={"=ShipDate=OrderDate"}>} OrderID)

 

 

hope this helps

Marco

Samanehsorournejad
Creator
Creator
Author

Hi Marco,

I had understand my fault, it works:

 

Only({$<OrderID={"=ShipDate=OrderDate"}>} OrderID)

 

😀

 

but is there any link or tutorial about this type of set analysis -?

Thanks a lot

MarcoWedel
MVP
MVP

maybe this chapter about expression searches in set expressions might help:

https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAn...

 

please close your thread by accepting a solution if your question is answered.

thanks

Marco

Samanehsorournejad
Creator
Creator
Author

thanks a lot I had do this