Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
i need to show only max date in a month and the sales on that day.
how to find max date ? like the sales been till 29th of march so how do we tell qlikview to show only max date i.e., 29/03/2014.
sum({<SaleDate={max(SaleDate)}>}Sales)
Hi,
I think you are looking for max()
try this,
=max(dateFieldName)
Regards,
Hi,
In load if DateField contains max date regularly then use peek function like
Let vMaxDate = Peek('Datefield',-1,'Tablename');
or use
Max(Datefield)
Hope this helps
Thanks & Regards
Hi gatikvij09,
Create a variable for max date
Let vMaxDate=Max(SaleDate);
And find sales of max date using set analysis
=sum({<SaleDate={'vMaxDate'}>}Sales)
Hi,
try to use "MaxDate" operator
thank you
This might give you required output -
=sum({<CalendarDate={"$(=max(CalendarDate))"}>}Sales)
create on Calendarday in your script
Load
day(date) as Calendarday
from datasoruce ;
=sum({<Calendarday= {"$(=max({<Date={$(=max(Date))}>} Calandarday))"}>}Sales)
If you are linking to a calendar that projects into the futute then you will have to ensure that it ties up with your sales data.
Add a variable (Ctrl + Alt + V)
Variable vCurrentDate = Date(Max({<SalesReference-=0 > } DateLK), 'DD/MM/YYYY')
Using {<SalesReference-=0 > } will ensure that it pulls back the date from the last sales entry.
The expression would be
=SUM({< DateLK={"$(=vCurrentDate)"} >} CLG_Count)