Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.