New Contributor

## how to get a value of last week in a quarter

we have scenario to get the value of a numbered field of last week in a quarter. For example we are in Q 1, we want the value of week 13 (which is last week in first quarter).

do we have any functions available to get the value?

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Try using this instead of the +85

6 REPLIES 6
Community Boss

Hi anilp,

If you're using Anaplan time, set the Time Summary of the line item to closing balance
This way, the quarter value will always be the value of the last week in the quarter

Then in your destination line item, simply refer the quarter line item by using a quarter lookup

Let me know if you need more help

Regards,
Anirudh

New Contributor

that helps a bit. how i can identify last month in a quarter and based on that i need to pull the closing balance for that month.

Master Anaplanner/Community Boss

Hello @anilp

What @anirudh was referring to is the following...

Change the summary method of the line item -for which you need to obtain the last value in the quarter- from the default SUM to Closing Balance. This way, the value of each Q will be the value of the last week in the quarter.

Now that you have the value you want in each Quarter, you can directly reference it and it will equal the value of the last week in the quarter.
Anaplan has native functions to reference Quarter values, but we don’t have a native function to reference Week x of the year.

assumption for that solution to work are:
1. You should be using Native Anaplan Time.

2. Module is dimensioned by weeks

Einas
"Give a Man a Fish, and You Feed Him for a Day. Teach a Man To Fish, and You Feed Him for a Lifetime"

Dear community members
Consider posting your question as a new topic and not in the thread of another topic/question. This help other community members to easily find the answer they looking for and doesn't cause the original thread to be so cluttered that we can't find what we are looking for
Community Boss

Hi,

Try the formula in the line item month

Regards,

Anirudh

Moderator

Try using this instead of the +85

Community Boss
I had no idea there was an END()
Thanks!