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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mwebergo2
Frequent Visitor

PRODUCT of last 12 months

I am trying to create a measure that calculates the PRODUCT of the last 12 months.  In the table below, column 1M = the current months values.  Column 1Yr is my measure that is supposed to calculate the product of the prior 12 months values.  As you can see, the 1Yr calculation seems to only result in the same value as 1M.

 

Here's my sample data.

Date1M1Yr
9/30/20241.01541.0154
8/31/20241.01931.0193
7/31/20241.02661.0266
6/30/20241.00861.0086
5/31/20241.02331.0233
4/30/20240.95990.9599
3/31/20241.01551.0155
2/29/20240.97920.9792
1/31/20240.99480.9948
12/31/20231.05991.0599
11/30/20231.08641.0864
10/31/20230.9670.967
9/30/20230.95330.9533
8/31/20230.98430.9843
7/31/20230.99690.9969
6/30/20231.00981.0098
5/31/20230.97550.9755
4/30/20231.00951.0095
3/31/20231.03591.0359
2/28/20230.95440.9544
1/31/20231.06341.0634
12/31/20220.98760.9876
11/30/20221.08871.0887
10/31/20220.970.97

 

And here's my (incorrect) measure:

Rolling 1Yr =
VAR EndDate = MAX('100 and 107'[Date])
VAR StDate = EDATE(EndDate, -11)
VAR Result =
    CALCULATE(PRODUCT('100 and 107'[1M]),
     DATESBETWEEN('100 and 107'[Date], StDate,EndDate)
    )
    RETURN Result
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

lbendlin_0-1730996615056.png

see attached

 

 

View solution in original post

2 REPLIES 2
mwebergo2
Frequent Visitor

I'm not sure what I was doing wrong, but that worked.  Thanks!

lbendlin
Super User
Super User

lbendlin_0-1730996615056.png

see attached

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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