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! Request now

Reply
dancarr22
Helper V
Helper V

Equivalent of array forumla in Excel - PRODUCT - Calculating linked returns

Hello,

 

We use an array formula to calculate returns in Excel.  Please see details below.

How cna this be replicated in Power BI?

 

Thanks,

Dan

Capture.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@dancarr22,

Firstly, create a column in your table.

return2 = 1+Table1[Returns(%)]/100

secondly, create a measure using DAX below in your table.

Measure = 

VAR DATECOL= MAX(Table1[Date])
RETURN (CALCULATE(
        PRODUCT(
           Table1[return2]
            ),
            FILTER(
                Table1,
                Table1[Date]<=DATECOL )
               )-1)*100

1.JPG


Regards,
Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@dancarr22,

Firstly, create a column in your table.

return2 = 1+Table1[Returns(%)]/100

secondly, create a measure using DAX below in your table.

Measure = 

VAR DATECOL= MAX(Table1[Date])
RETURN (CALCULATE(
        PRODUCT(
           Table1[return2]
            ),
            FILTER(
                Table1,
                Table1[Date]<=DATECOL )
               )-1)*100

1.JPG


Regards,
Lydia

This worked!  Thanks Lydia!  

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