Weekly and MTD totals choosing the month AND whole week.

alfranco17

Board Regular
Joined
Apr 14, 2013
Messages
198
Hi.

I am working on a report that is driving me nuts. I am trying to use a measure TOTAL QTY := TOTALMTD(SUM(Production[Qty]),Calendar[Date]).

The report covers both report whole weeks and MTD. So, December goes from Sunday december 1st to friday january 3rd and January will go from sunday december 29th to friday january 31st.

The ambiguity in that week is my problem.

In this case, there are 6 days that could add up either to december or to january (dec 29 - Jan 3), and I need to compute both MTD total and weekly totals. If I filter by week, it automatically takes the last day and calculates the MTD for January. To get the one for december, I tried using TOTALMTD(SUM(Production[Qty]),ADDDATE(Calendar[Date],-1,MONTH)), but my problem is that the user needs to decide whether to get the total for december or for january, and that's where I got stuck.

I am filtering by weeks. If I try to filter by month, I lose the totals by week. If I filter by week, I cannot get the total for the first month.

Have you had to solve something similar?

Thanks.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,223,753
Messages
6,174,307
Members
452,554
Latest member
Louis1225

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top