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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
bhavvibudagam
Creator II
Creator II

Date()

Hi Experts,

Can any one please help me on below requirement.

I have a Due date field in DD/MM/YYYY format.

I need to calculate the below measure

all items where duedate<= today and Status = completed in set analysis.

all items count(issuenum ) is there how to apply the above condition in set analysis.

Please help me on this.

Thanks in advance.

Labels (1)
1 Solution

Accepted Solutions
Nagaraju_KCS
Specialist III
Specialist III

=Sum({<OrderDate={"<=$(=Max(OrderDate))"}, Status={'Completed'}>}OrderSalesAmount)

View solution in original post

7 Replies
Nagaraju_KCS
Specialist III
Specialist III

Try

=Sum({<OrderDate={"<=$(=Date(Today(),'DD/MM/YYYY'))"}, Status={'Completed'}>}OrderSalesAmount)

jyothish8807
Master II
Master II

Hi,

Try like this:

Count({<Duedate={"<=$(=date(today(),'DD/MM/YYYY')"},Status={'Completed'}>}issuenum )

Best Regards,
KC
bhavvibudagam
Creator II
Creator II
Author

Hi Jyothish,

Thanks for your reply.

Could you please help me how to change the above expression for Max(Date) because In the source I haven't found today date.

bhavvibudagam
Creator II
Creator II
Author

Hi Raju,

Thanks for your reply.

Could you please help me how to change the above expression for Max(Date) because In the source I haven't found today date.

Nagaraju_KCS
Specialist III
Specialist III

=Sum({<OrderDate={"<=$(=Max(OrderDate))"}, Status={'Completed'}>}OrderSalesAmount)

shiveshsingh
Master
Master

Count({<Duedate={"<=$(=date(Max(Date),'DD/MM/YYYY')"},Status={'Completed'}>}issuenum )

jyothish8807
Master II
Master II


Count({<Duedate={"<=$(=date(Max(Date),'DD/MM/YYYY')"},Status={'Completed'}>}issuenum )


In the above case you have to be sure that you have two date fields 1. Duedate 2. Date


Count({<Duedate={"<=$(=date(Max(Duedate),'DD/MM/YYYY')"},Status={'Completed'}>}issuenum )


If i change the date to Duedate then it will not make any difference since all the duedate will be less that max(Duedate).


I believe there is something you are still missing wrt the requirement.


Br,

KC

Best Regards,
KC