Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Arnaud35
Contributor III
Contributor III

SET ANALYSIS

Hello,

 have the following error returned in my load script below : "Error in expression: ')' expected"

 

=Sum(if{[Opportunite.Statut_Commercial]='En cours' and [Opportunite.Date_relance]={"<$(=Date(Today(), 'DD/MM/YYYY'))>"}[Opportunite.EstOpportunite]))

 

Thank you for your help 🙏🙏🙏

Labels (2)
1 Solution

Accepted Solutions
abhijitnalekar
Specialist II
Specialist II

Hi @Arnaud35 ,

Has [Opportunite.Date_relance] format is the same as DD/MM/YYYY

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

14 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @Arnaud35 ,

Please correct the expression as below.

Sum(if
([Opportunite.Statut_Commercial]='En cours' and
[Opportunite.Date_relance]={"<$(=Date(Today(), 'DD/MM/YYYY'))>"},[Opportunite.EstOpportunite]))

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
Arnaud35
Contributor III
Contributor III
Author

Thank you for your reply but it doesn't work as shown below.

What can I do ?

 

Arnaud35_0-1638438375328.png

 

abhijitnalekar
Specialist II
Specialist II

Hi @Arnaud35 ,

can you please let me know what you are looking for less than today's date or equal to

[Opportunite.Date_relance]={"<$(=Date(Today(), 'DD/MM/YYYY'))>"}

 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
Arnaud35
Contributor III
Contributor III
Author

Hi @abhijitnalekar 

Thank you for your question.

I want to check opportunities for which the "Date de Relance" is less or equal to the date of the current day.

Regards

abhijitnalekar
Specialist II
Specialist II

HI @Arnaud35 ,

Try below 

=Sum(if
([Opportunite.Statut_Commercial]='En cours' and
[Opportunite.Date_relance]="$(='<=' & Date(Today(), 'MM/DD/YYYY'))",[Opportunite.EstOpportunite]))

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
Arnaud35
Contributor III
Contributor III
Author

@abhijitnalekar 

Now i have the error message

 

Arnaud35_0-1638439399444.png

 

abhijitnalekar
Specialist II
Specialist II

Hi @Arnaud35 ,

Is it possible to share some sample data?

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
Arnaud35
Contributor III
Contributor III
Author

What kind of sample data can I send to u ?

Arnaud35
Contributor III
Contributor III
Author

i tried with this set analysis. it doesn't work

sum({<if([Opportunite.Statut_Commercial]='En cours' and [Opportunite.Date_relance]={"<$(=Date(Today(), 'DD/MM/YYYY'))>"})>}[Opportunite.EstOpportunite])