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

DAX Rolling 12 month with no value in a month

Hi,

 

I'm blocked on my Sum Rolling 12 months measure:

 

When I want to split by category, it's possible to have no value in the last month that I want to begin the 12 months, in this case, the Rolling 12 months doesn't sum with the previous 11 months.

 

In this example, line 5, I have nothing, or I have to have 4. It's because I want the rolling for November, and in november I have no value for line 5.

 

My measure:

 

A 12MG = CALCULATE([A];

          DATESINPERIOD('Date'[Date];

                       LASTDATE('Date'[Date]);-12;MONTH))

 

12MG.png

 

Can someone help me?

Thanks

 

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 122 members 1,782 guests
Please welcome our newest community members: