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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
mwebergo2
New Member

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
New Member

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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.