HOW TO FETCH DATA

Six Stars

HOW TO FETCH DATA

Hi experts,

How to get previous week data and previous months data using talend date functions

in tmap expression builder. 

and similarly how to get current months data and current weeks data 

the scenario is I want to show previous and current data comparision in a table.

 

Thanks in advance

 

 

 

 

Moderator

Re: HOW TO FETCH DATA

Hello,

This is also very easy in Talend with built-in functions

TalendDate.getCurrentDate() returns the current date.
TalendDate.addDate(TalendDate.getCurrentDate(),"-1","MM") returns last month.

For your current weeks data requirement, could you please send an example for us?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog