Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
how to get current month records
Hi,
Use Month(Today()), this gives you the current month.
Hi Paul,
Assuming Current month is the latest month for which the data is present.
If you want to get current month record at script level,
HI
You want to check both Year and Month to get the current Month data.
For ex:
Load * from tablename where Year = Year(Today()) and Month = Month(Today())
or
Load * from tablename where Date >= Date(MonthStart(Today()),'DD/MM/YYYY');
Note:
Date format based on your date field
Hi,
You must have row updation date in your table; e.g we are considering it as LastUpdatedDate.
At Script Level:
TabMain:
Load ID, Amount, LastUpdatedDate, Month(LastUpdatedDate) as Month, year(LastUpdatedDate) as Year From Table;
Tab:
Load * resident TabMain where Month=Month(Today) and Year=Year(Today());
drop table TabMain;
------------------------------------------
At Expression Level:
Sum({$<Month={'$(=Month(Today()))'}, Year={'$(=Year(Today()))'}>}Amount)
What type of records you want to get?
It is like total sale for this month or like Total Sale for each customer?
Please specify for more visibility.
Hi Manish,
It is like total sale for this month