Showing last 12 months which have data

srdirect

New Member
Joined
Jul 11, 2014
Messages
12
hi looking for some direction in using some of the time intelligence functions.....

I am trying to create a measure which will show the my last 12 months where I have have data for my measure
[I aggregated multiple tables into a measure]

just cant seem to figure out how to use the time intelligence functions to show the
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
For this sort of thing I usually add a calculated column to my calendar table (IsRecent12Mo or whatever) then use that as a filter.
 
Upvote 0
But I want to tie it to recent data and not the last 12 months,
for example I might only have data until march of this year, and wish to get 12 months from then)
 
Upvote 0
So, your fact/data table... that has sales until march, it has some sort of date column, right? MAX(Sales[Date]) is going to give the last date there.

Over in your calendar table, you can do something a calculated column:
=IF(Calendar[Date] <= MAX(Sales[Date]) &&
MAX(Sales[Date]) - Calendar[Date] < 365, "Current", "Old")

Might not be perfect, but hopefully you get the idea. You then have a column in your calendar table that you can use for filtering... wherever.
 
Upvote 0

Forum statistics

Threads
1,224,020
Messages
6,175,966
Members
452,691
Latest member
Tony_Almeida

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