Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Comunity,
i have data in table year 2010 to year 2016 but i want to represent data only till sysdate mean till today so i'm puting this script in expresion but its not working plz suggest how to use vtoday variable in this script
=sum(COMPONENT_AMOUNT)<=vtoday
May be this:
If(DatabaseYearFieldName <= Year(Today()), Sum(COMPONENT_AMOUNT))
Try with set analysis
=Sum({<Year = {"<=$(=year(today()))"}>}COMPONENT_AMOUNT)
Anil,
try this one..
=sum({<DateFieldName={"<=$(=date(today(), req format)))"}>} Component_Amount)
In script, filter out data withe dates after today as:
LOAD ...
FROM ...
WHERE myDateDateField <= Today();
or
SQL SELECT ...
FROM ...
WHERE myDateDateField <= '$(vtoday)';
The actual script depends on how vtoday is defined....
In expressions in the front end
Sum(If(myDateField <= '$(vtoday)', amount))
Sum({<myDateField = {"<=$(=vtoday)"}>} amount)
Again, the exact syntax depends on how vtoday is defined.
See this
Try the below expression @Anil
=sum({<Date = {"<=$(=today())"}>}COMPONENT_AMOUNT)
Thanks Balraj