Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.

1 Solution

Accepted Solutions
qv_testing
Specialist II
Specialist II

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

View solution in original post

7 Replies
qv_testing
Specialist II
Specialist II

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.

qv_testing
Specialist II
Specialist II

=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