cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
israabuhasna Frequent Visitor
Frequent Visitor

Trailing 12 Months of Sum Per Month

Hi,

 

I know there are many threads ont his topic however I hit a bump when I apply it to my data. My goal is to create a visual in which 12 months prior to todays month is the axis to the visual and the SUM of my sales is the column. Like any normal visual. However, when I apply this measure, the axis shows every day of every month of the past 12 months. When I drill to have the axis show only 'Months' and not 'Days' it shows only from January to December. Not from Sept 2018 to Sept 2019 which is my goal. 

Measure:

 
TTM_AwardedOpps = 
Var CurrentDate = TODAY()
Var PreviousDate = DATE(YEAR(CurrentDate),MONTH(CurrentDate)-12,DAY(CurrentDate))
Var RESULT = CALCULATE(SUM(Table[Sales]),FILTER('Table','Table'[DateAwardedLost]>=PreviousDate && 'vw_Awarded _Term_Opportunity'[DateAwardedLost]<=(CurrentDate)))
Return RESULT
My Goal visual:
Capture.PNG
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Trailing 12 Months of Sum Per Month

Hi @israabuhasna ,

 

You may put date field into chart visual, remain the hierarchy Year and Month, then click button “Expand all down one level in the hierarchy” in the upper right of visualization.

 

63.png

After expanding the hierarchy:

 

64.png

 

Best Regards,

Amy

 

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

2 REPLIES 2
Community Support Team
Community Support Team

Re: Trailing 12 Months of Sum Per Month

Hi @israabuhasna ,

 

You may put date field into chart visual, remain the hierarchy Year and Month, then click button “Expand all down one level in the hierarchy” in the upper right of visualization.

 

63.png

After expanding the hierarchy:

 

64.png

 

Best Regards,

Amy

 

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

Community Support Team
Community Support Team

Re: Trailing 12 Months of Sum Per Month

Hi @israabuhasna  ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 59 members 1,101 guests
Please welcome our newest community members: