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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ptmuldoon
Resolver I
Resolver I

Visual to include monthly TTM and include total prior TTM

I'm looking to see how I can mimic an excel report I have that has columns for a TTM plus the Total TTM and Prior year Total TTM.  It should not include the prior year months, only the prior year TTM total.

 

I like working with the Matrix visual.  Do I need to include separate measures for every month, column or is there a better/easier way?   I know I can quickly add in an date/month and filter by year, but what about adding just the prior year TTM total?

 

Something like this from excel.

 

2024-10-30_11-54-44.png

 

 

1 ACCEPTED SOLUTION
ptmuldoon
Resolver I
Resolver I

Thanks everyone,

 

I also found this good youtube video that uses Calculation Groups to add additional totals to a Matrix, and is exactly what I'm trying to do (just need to figure it out !).  

 

Maximizing Power BI Matrix Visual: Displaying Multiple Totals for Better Insights - Part 1 - YouTube

 

View solution in original post

4 REPLIES 4
ptmuldoon
Resolver I
Resolver I

Thanks everyone,

 

I also found this good youtube video that uses Calculation Groups to add additional totals to a Matrix, and is exactly what I'm trying to do (just need to figure it out !).  

 

Maximizing Power BI Matrix Visual: Displaying Multiple Totals for Better Insights - Part 1 - YouTube

 

Hi @ptmuldoon,

Glad to hear you may have found a solution! If you're sure the issue has been resolved, could you mark this post as resolved? That way, others with similar issues can more easily find a solution and the community can see that the issue has been resolved.
Thanks, and feel free to reach out if you need further help!

v-xingshen-msft
Community Support
Community Support

Hi All
Firstly, @_AAndrade  thank you for your solution!
And @ptmuldoon ,Based on your question, I've tried to create sample data to replicate what you want to show in the matrix , hopefully it will help you!

Prior Year TTM Sales = 
CALCULATE(
    SUM('Table'[Sales]),
    FILTER(
        ALL('Table'),
        'Table'[Date]<MAX('Table'[Date])  &&
    'Table'[Date]>EDATE(MAX('Table'[Date]) , -12)
    )
)
TTM Sales = 
CALCULATE(
    SUM('Table'[Sales]),
    DATESINPERIOD('Table'[Date], MAX('Table'[Date]) , -12, MONTH)
    
)

vxingshenmsft_0-1730355399852.png

I hope this solves your doubts, if you have further questions you can always contact me and I'll get back to nin the first time I hear from you!

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

_AAndrade
Super User
Super User

Hi @ptmuldoon,

In your PrevYear measure you can put a IF statement like this:
IF(
  ISINSCOPE('YourTable'[Month]),
  BLANK(),
  [PrevYearCalculation]
)





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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