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

set analysis help

Hi i  have a table with 4 fields,

item,orderdate,unitcost,Rep

I want to get the unit cost for max(Orderdate).

I tried the following set expression ,it is not working .Please correct me

max({<OrderDate={$(=vDate)}>}[Unit Cost])

where vDate = max(OrderDate)

3 Replies
Anonymous
Not applicable
Author

Sum({<OrderDate={"$(=vDate)"}>}[Unit Cost])

PrashantSangle

Hi,

Check date format after applying max()

OrderDate is num format then above solution work

else you need Date()

vDate=Date(max(OrderDate))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
ganeshreddy
Creator III
Creator III

Hi RGV,

You can try both, Utkarsh and Max dreamer options. I hope it works fine

Best regards,

Ganesh