Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Solved! Go to Solution.
@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
Regards,
Lydia
@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
Regards,
Lydia
This worked! Thanks Lydia!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.