Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

TAM between two dates

Hi guys,

 

I want to create a 12 TAM measure in my cube of SSAS in case of use it in my PowerBI report (or create a new measure in it).

 

I have a sales 'tFRA' and i want to see it in 12 past months accummulated.

 

Any idea?

 

Regards.

1 ACCEPTED SOLUTION

@Anonymous,

Please take a look at the blog below about how to calculate Moving Annual Total, just use 3 months or 6 months instead of 1 year.

http://www.daxpatterns.com/time-patterns/


Regards,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
vanessafvg
Super User
Super User

@Anonymous what is a TAM measure?

 

when you say the last 12 months i am assuming you mean a rolling 12 months?  Also is this tabular SSAS or MDX?

 

you could do something like this (assuming you have a date table with its relationship mapped and its DAX you after)

 

TAM = 

Calculate(sum([tFRA]),

DATESBETWEEN('Date'[Date],
NEXTDAY(SAMEPERIODLASTYEAR (LASTDATE ('Date'[Date]))),
LASTDATE( 'Date'[Date])
)
)

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Sorry i wanted to say MAT (Moving Annual Total), but in my case i want just 3 months, 6 months, etc

Anonymous
Not applicable

And there are tabular cubes, sorry again!

@Anonymous,

Please take a look at the blog below about how to calculate Moving Annual Total, just use 3 months or 6 months instead of 1 year.

http://www.daxpatterns.com/time-patterns/


Regards,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors