Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have requirement to create a straight table based on date range dependent on value selected from the DATE listbox & the nth previous date from selected date in listbox. I have attached sample qvw. Thank you for help.
Define a variable like:
vNthDate =Date(Max({<DATE={"<=$(=Date(Max(DATE)))"}>}DATE,vNthRow))
Then expression like:
SUM({<DATE={">=$(vNthDate) <=$(=Date(Max(DATE)))"},STATUS={'F'}>}VALUE)
Define a variable like:
vNthDate =Date(Max({<DATE={"<=$(=Date(Max(DATE)))"}>}DATE,vNthRow))
Then expression like:
SUM({<DATE={">=$(vNthDate) <=$(=Date(Max(DATE)))"},STATUS={'F'}>}VALUE)
When we look too hard we miss out whats most easy way.! I racked all rank, aggregate & it was most simple max function. Thank you so much Tresco