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: 
GregRyder
Contributor III
Contributor III

Formula Problem

Hi

I am trying to calculate the month to date sales for last month. I am using an auto calendar.

here is my Formula

Sum({<[TXDATE.autoCalendar.MonthsAgo]={1}, TCODE={'IN'}, [TXDATE.autoCalendar.Month] ={"<=$(=Num(Month(Today()))) "} >} AMOUNT)
-
Sum({<[TXDATE.autoCalendar.MonthsAgo]={1}, TCODE={'CN'}, [TXDATE.autoCalendar.Month] ={"<=$(=Num(Month(Today()))) "} >} AMOUNT) 

Labels (3)
11 Replies
GregRyder
Contributor III
Contributor III
Author

Hi Daniel,

You were correct and the formulae now works as expected, I just one small question now.

The data I have is always 1 day old so as of today the 06/10/206 I only have the data until 05/10/2026 so I want to compare last year October for the same period and not include the data from 06/10/2025.

Hope this makes sense.

Thanks 

Greg

 

GregRyder
Contributor III
Contributor III
Author

Hi Daniel,

I work it out.

Thanks for all the help