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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
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

Labels (1)
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)