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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Hickling
Helper I
Helper I

Rolling calculation measure using countrows

Hi team, long time lurker first time poster. Have a question that has me beat, hoping you can help.

 

My data doesn't involve figures, but rather rows of safety incident details. Most of my measures involve using countrows calculations to track incident rates for the month based on certain parameters.

 

One of these is injury details, where I use a measure count of serious injuries for each department each month, divided by the number of hours worked in a different table, multiplied by 1,000,000 to create a frequency rate which I graph over a 12 month period. I have a separate dedicated date table that I use for the months.

 

However, as well as the monthly rate, I need a 12 month rolling rate that takes each month point on the graph and does a count of the previous 12 months injuries, which I can then divide by the sum of the previous 12 months hours.

 

So for example the point on the graph for April 2019 would be using the totals of May18 to Apr19, then March 2019 would use the totals of Apr18 to Mar19, and so on backwards. It's the last 12 month thing that's got me stumped.

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Hickling ,

 

Please illustrate your requirement with sample data and expected result.

How to Get Your Question Answered Quickly

 

Best regards,

Yuliana Gu

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.