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

Dynamic MTD Calculation

Hi ,

I trying to calculate dynamic MTD  in stright table , I used below set anlysis to claculate this,

num(sum({$<Year = {$(=max(Year))}, Month = {"<=$(=max({<Year={$(=max(Year))}>} Month))>$(=max({<Year={$(=max(Year))}>} Month)-1)"}>} [In profit center local currency_KSL]), '$#,##0;($#,##0)')

.

but this give out "0" if there are no values for the perticular document perticular for that month, I want only to on current month documetnt to be considered.Can any one help me on this ?

QV.png

1 Reply
perumal_41
Partner - Specialist II
Partner - Specialist II

Hi,

please try this Expression .I thing Useful for U.

num(sum({$<Year = {$(=max(Year))}, Month = {"<=$(=month(max(Date)))>$(=addmonths(month(max(Date)),-1))"}>} [In profit center local currency_KSL]), '$#,##0;($#,##0)')

Regards ,

Perumal.A