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! Learn more
Hi,
I need to create a dynamic return graph in power BI to calculate return for a given period (Final/First Value), based in one slicer for Fund, and other for date, like below:
I tried to create a measure like the one below, but it gives always 1.
Solved! Go to Solution.
Hi @Pedro_borges ,
Please update the formula of measure [Return Measure] as below and check if that is what you want. You can find the details in the attachment.
Return Measure =
VAR _mindate =
CALCULATE ( MIN ( Resultados[Data] ), ALLSELECTED ( 'Resultados' ) )
VAR _fdCFIC =
CALCULATE (
SUM ( 'Resultados'[Cota FIC] ),
FILTER ( ALLSELECTED ( 'Resultados' ), 'Resultados'[Data] = _mindate )
)
RETURN
DIVIDE ( SUM ( 'Resultados'[Cota FIC] ), _fdCFIC )
Best Regards
Hi @Pedro_borges ,
Please update the formula of measure [Return Measure] as below and check if that is what you want. You can find the details in the attachment.
Return Measure =
VAR _mindate =
CALCULATE ( MIN ( Resultados[Data] ), ALLSELECTED ( 'Resultados' ) )
VAR _fdCFIC =
CALCULATE (
SUM ( 'Resultados'[Cota FIC] ),
FILTER ( ALLSELECTED ( 'Resultados' ), 'Resultados'[Data] = _mindate )
)
RETURN
DIVIDE ( SUM ( 'Resultados'[Cota FIC] ), _fdCFIC )
Best Regards
It worked perfectly. Thank you!
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.