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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Extract year from a date

Hi all, 

I want extract a year from a date by using this function :

Integer.parseInt(TalendDate.formatDate("yyyy",consultation.Date)) 

I find a java error.

 

Please i request your help to resolve this.

 

Thank you.

Labels (3)
14 Replies
TRF
Champion II
Champion II

Once again you need to protect yourself again null value for consultation.Date
Anonymous
Not applicable
Author

Thank you for your generosity.

Please, now i need another help.

I have  2 tables "consultation" et "beneficiaire" and i want count the number of consultations per beneficiary.

Unfortunately, I do not know how to express this in talend.

 

Thank you for all.


NombreTotal.png
Anonymous
Not applicable
Author

Please what do you think about this :

(consultation.idBeneficiaire == beneficiaire.idBeneficiaire ) ?
NombreTotal = NombreTotal+1

 

thank you.

TRF
Champion II
Champion II

The rule is to have 1 question per topic.
Please, accept the preceding then open a new one.
TRF
Champion II
Champion II

The rule is to have 1 question per topic.
Please, accept the preceding then open a new one.