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: 
Anonymous
Not applicable

Set analysis for months

Hi, I want to calculate sales for salesman for the next 2 months from the current month. Let us say the current month is july and I want to calculate for august and september.

2 Replies
ashfaq_haseeb
Champion III
Champion III

Try like this

=Sum({<Date={">=$(=MonthStart(AddMonths(Max(Date),+1)))<=$(=MonthEnd(AddMonths(Max(Date),+2)))"}>}Sales)

Regards

ASHFAQ

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

=Sum({<MonthDimensionName=, YearDimensionName=, DateDimensionName={">=$(=MonthStart(AddMonths(Max(DateDimensionName),1)))<=$(=MonthEnd(AddMonths(Max(DateDimensionName),2)))"}>}Sales)


Note: Replace MonthDimensionName, YearDimensionName, DateDimensionName with your actual field names.


Regards,

Jagan.