Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
I have read topics about this as it has been asked numerous times but I am not able to make it work for some reason on my own app.
I have invoice table with invoice date and I have for same table seperate columns lets call them Year, Month and Day that pulls information from invoice date (it's predefind in sql year(invoicedate), month(invoicedate) and day(invoicedate) so I don't have to bother in Qlik doing it.
So far I got with formula up to this, where I filtered subject, but when it comes to date I do not know how to approach as I tried various combinations and it didn't work, this allows me to filter current year and previous year but not up to date.
sum({<[invoicesheadings.SUBJECT]-={2324},[invoices.Year]={$(=Max([fakture.YEAR]))}>}[invoices.AMOUNT])
sum({<[invoicesheadings.SUBJECT]-={2324},[invoices.Year]={$(=Max([fakture.YEAR])-1)}>}[invoices.AMOUNT])
Any help is appreciated, thanks in advance.
Current Year YTD
=Count({$<AttendDate = {'>=$(=YearStart(Today()))<=$(=(Today()))'}>}EMP_ID)
For Previous YTD
=SUM({$<AttendDate = {'>=$(=AddMonths( YearStart (Today()),-12))<=$(=AddMonths( (Today()),-12))'}>}EMP_ID)
this will do current year till todate and last year till today
Try putting the Year set expression in quotes
{"$(=Max([fakture.YEAR]))"}
{"$(=Max([fakture.YEAR])-1)"}
Hi you can't do YTD with year field you need date column
Current Year YTD
=Count({$<AttendDate = {'>=$(=YearStart(Today()))<=$(=MonthEnd(Today()))'}>}EMP_ID)
For Previous YTD
=SUM({$<AttendDate = {'>=$(=AddMonths( YearStart (Today()),-12))<=$(=AddMonths( MonthEnd (Today()),-12))'}>}EMP_ID)
Current Year YTD
=Count({$<AttendDate = {'>=$(=YearStart(Today()))<=$(=(Today()))'}>}EMP_ID)
For Previous YTD
=SUM({$<AttendDate = {'>=$(=AddMonths( YearStart (Today()),-12))<=$(=AddMonths( (Today()),-12))'}>}EMP_ID)
this will do current year till todate and last year till today
@dario_frimel I'm stuck at the exactly the same point!! what exactly were your modifications to the date field?