Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
honeyasha
Contributor III
Contributor III

Master Calendar

Hi ,

can any one explain the previous month and prior month sales in set analysis using master calendar with example.

Thanks in advance.

11 Replies
ecolomer
Master II
Master II

Yoiu can see this:

Previous three months

jyothish8807
Master II
Master II

Hi Rohini,

The below thread would be helpful in understanding Master calendar.

Creating A Master Calendar

To calculate previous month and current month sales try like this:

Curr Month Exp: sum({<Year={'$(=Year(max(Year))'},Month={'$(=Month(max(Month))'}>}Sale)

Pre Month Exp: sum({<Year={'$(=Year(max(Year))'},Month={'$(=Month(addmonths(max(Month),-1))'}>}Sale)


Br,

KC

Best Regards,
KC
jyothish8807
Master II
Master II

Why is my comments moderated now a days ?

Br,

KC

Best Regards,
KC
arvind1494
Specialist
Specialist

Suppose,

Date is a field in your master calender:

Prior month:

1) sum({$<Year, Month, Date = {"$(='>=' & Date(MonthStart(Max(Date))) & '<=' & Date(MonthEnd(Max(Date))))"}>} Sales)



Previous month:

2) sum({$<Year, Month, Date = {"$(='>=' & Date(MonthStart(Max(Date), -1)) & '<=' & Date(MonthEnd(Max(Date), -1)))"}>} Sales)

honeyasha
Contributor III
Contributor III
Author

Thanks for all your response.

I have created a Master Calendar but for particular Date sales has not been done but still sales is reflecting for that date.

Can anyone explain .

Thanks.

ecolomer
Master II
Master II

Can you upload a file with an example?

honeyasha
Contributor III
Contributor III
Author

Hi Enrique,

Thanks for response,

I have fixed that issue . I want to know about previous & current month,Year & quarter sales expression in set analysis with example  and i have created Master calendar.

Thanks in advance.

jyothish8807
Master II
Master II

Hi Rohini,

Try this:

To calculate previous month and current month sales try like this:

Curr Month Exp: sum({<Year={'$(=Year(max(Year))'},Month={'$(=Month(max(Month))'}>}Sale)

Pre Month Exp: sum({<Year={'$(=Year(max(Year))'},Month={'$(=Month(addmonths(max(Month),-1))'}>}Sale)


Br,

KC

Best Regards,
KC