Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
joshrussin
Creator III
Creator III

Current month data

Trying to figure out how to calculate current month processes.

expression:

=Sum({$<Status_Dash={'Completed'}, Month={"$(Month(addmonths(today(),-0)))"}>} Processed_Dash)

the return value should be 4342, but it is returning all data from "completed" in the database, including previous months.

current month.PNG

20 Replies
Anonymous
Not applicable

Sunny has the right idea.  However if your data crosses years you'll also want to include Year into the calculation.

LOAD

  Date_Dash,

  Month(Date_Dash) as Month,

Year(Date_Dash) as Year,

  Program_Dash,

  UOM_Dash,

  Status_Dash,

  Ave_Cost_Dash,

  Processed_Dash

FROM [lib://AttachedFiles/OB_Summary_Data.xlsx]

(ooxml, embedded labels, table is OB_Dash_Data);



Then your expression is

=Sum({$<Status_Dash={'Completed'}, Month= {"$(=Month(Today()))"}, Year= {"$(=Year(Today()))"}>} Processed_Dash)