Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Hariprasad
Contributor II
Contributor II

How to write set analysis calculation for 1 month , 3month, 6m..

Hi Team,

I want to know how to write set analysis for like we are in feb 2023, so  need to show what is the sales for lastmonth like jan sales and 3rd month like november 2022 and sept2022 sales

form current month to 1st, 3rd, 6th month like this

Hariprasad_0-1677132249300.png

Hariprasad_1-1677132287865.png

 

 

Labels (1)
2 Replies
WildmoserGeorg
Contributor III
Contributor III

If there are fields (example 1MonthField) to flag (1 true) for the period in the mastercalendar:

sum({< 1MonthField = {1}>} *formula*)

...

neerajthakur
Creator III
Creator III

For last 1 month : Sum({<Month={"Month(AddMonths(Today(),-1))"}>}Sales)

For 3rd month : Sum({<Month={"Month(AddMonths(Today(),-3))"}>}Sales)

For 6th month : Sum({<Month={"Month(AddMonths(Today(),-6))"}>}Sales)

Thanks & Regards,
Please Accepts as Solution if it solves your query.