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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Calculate MTD

Dear All

How can I put the expression to calculate MTD? I have the following columns in the pivot table:-

TodayMTD
DChlDCDEITTotalDCDEITTotal
PlantGroupSO NameMCountyTotalTotal
NE02AGKNGAGKAhmedabad209.470212.000502.000923.470----
NE02AGKNGAGKGandhinagar17.18044.000NIL61.180--NIL-
NE02AGKNGAGKKheda17.000129.000NIL146.000--NIL-


1 Reply
matt_crowther
Specialist
Specialist

In the past I've used: (unchecked syntax)

=sum(if(monthname(DateField)=monthname(today()) and date(DateField)<=date(today()),Sales))

Alternatively of course you can use the InMonthToDate() function.

Hope that helps,

Matt - Visual Analytics Ltd