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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mwebergo2
Regular 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
Regular 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
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.