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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
vincenttys
Helper I
Helper I

Monthly Rolling

Hi All,

 

I only started to use PowerBI and already stuck with what i currently working on and hopefully i can get the assistance i need from this community.

 

Please see below is the snapshot of the dataset that i am currently working on. The data is added daily.

 

04/04/2018Hazard4
04/04/2018Incident4
01/04/2018Hazard4
30/03/2018Hazard4
29/03/2018Incident4
28/03/2018Fire4
28/03/2018Fire4
28/03/2018Collision4
27/03/2018Incident4
27/03/2018Near Miss3

 

What i required to present is:

 

- Total type of event (Only Hazard and Incident) starting previous month (Example March 2018 and prior) as we are only half way into April 2018.

- Above need to be present in total 3 month rolling. (Example: For March 2018, i need the total from period between January2018 and March2018. For February 2018, i need the total from period between December2017 and February2018 etc).

 

Thanks in Advance.

 

Regards,

Vince

 

2 ACCEPTED SOLUTIONS
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @vincenttys,

 

Please check out the demo here.

1. Create a new date table;

2. Establish relationships;

3. Create a measure.

Measure =
CALCULATE (
    SUM ( Table1[Value] ),
    DATESINPERIOD (
        'Calender'[Date],
        EOMONTH ( MIN ( 'Calender'[Date] ), -1 ),
        -3,
        MONTH
    )
)

Monthly_Rolling

 

Best Regards,

Dale

Community Support Team _ Dale
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

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @vincenttys,

 

Can you mark the proper answer as a solution please?

 

Best Regards,

Dale

Community Support Team _ Dale
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
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @vincenttys,

 

Can you mark the proper answer as a solution please?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @vincenttys,

 

Please check out the demo here.

1. Create a new date table;

2. Establish relationships;

3. Create a measure.

Measure =
CALCULATE (
    SUM ( Table1[Value] ),
    DATESINPERIOD (
        'Calender'[Date],
        EOMONTH ( MIN ( 'Calender'[Date] ), -1 ),
        -3,
        MONTH
    )
)

Monthly_Rolling

 

Best Regards,

Dale

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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.