Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD Expression Issue

Hi,

I want to create an expression which will calculate the sum of my dimension from april month of a year to current date.

Thanks,

Utsav

1 Reply
nirav_bhimani
Partner - Specialist
Partner - Specialist

Hi,

you are using financial year or normal year?

this work with Fin Year as you want.

In Script // QuarterStart(CalendarDate) as QuaterStartDate,

In Variable //vMaxDate= Max(CalendarDate) OR vMaxDate= (Today())

                                   

(sum(
{<
CalendarDate = {">=$(= Date (
min({<CalendarWeekOfYear=, FinancialQuarter=, MonthName=>} QuaterStartDate )))<=$(vMaxDate))" }
, CalendarWeekOfYear=, FinancialQuarter=, MonthName=
>}
Sales))


Hope this will help you.

Regards,

Nirav Bhimani.