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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
meenukannusamy
Regular Visitor

Rolling 12 months data with 2 dimension

Hi All,

I need the sum of values  for prior 12 months .

Example for apr 2017 i need the sum of value from april 2016 to april 2017.help me to acive this in power bi 

HOURS WORKED Jul-16 Aug-16 Sep-16 Oct-16 Nov-16 Dec-16 Jan-17 Feb-17 Mar-17 Apr-17 May-17 Jun-17 Jul-17 Aug-17 Sep-17 Oct-17 Nov-17 Dec-17 Jan-18
Plant  8,643 9,625 8,770 8,805 7,795 7,993 5,462 6,138 7,905 8,270 6,709 8,218 8,548 9,278 8,955 8,489 7,465 7,716 5,935

8 REPLIES 8
meenukannusamy
Regular Visitor

Capture.PNGCapture1.PNGI

I have to caluculate dynamic 12 months rolling total.

Hi @meenukannusamy,

 

Please try out the demo here.

1. Create a calendar table.

Calendar =
CALENDAR ( DATE ( 2016, 1, 1 ), DATE ( 2018, 3, 31 ) )

2. Create a measure.

Measure =
CALCULATE (
    SUM ( FactTable[Plant] ),
    DATESINPERIOD (
        'Calendar'[Date],
        EOMONTH ( MIN ( 'Calendar'[Date] ), 0 ),
        -12,
        MONTH
    )
)

According to your snapshots, the period of April 2017 could be from May 2016 to April 2017.

Rolling_12_months_data

 

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.

Thanks for your reply sir.But i got another dimension next to date and the calculation has to be repeated for everygroup.In your Example consider there is another column next the year as red and they have data from 2016 to 2017 and blue 2016 to 2017 and we want running total to be calulated across the colour column also. I will be glad if you could help me on that .

 

Capture.PNG

Hi,

 

Share the link from where i can download your file and also show the expected result there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Capture.PNG

 

 

The running Total Works fine for the Central North but i'm getting the same value for lower North also 

It is an Excel file.I'm not sure on how to upload it here.If you see my previous screen pictures you can understand my requireement it is very straight forward

Hi,

 

Upload your workbook to Google Drive and share the download link here.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors