Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Solved! Go to Solution.
Hi @wooand ,
I just compared the returned value by my measure "ROR" with the value which use the formula "(C12/C2)^(365/COUNT(C2:C12))-1" in excel returned, and found that their values are the same. I don’t know why the returned value is incorrect when applied to your scenario... Could you please provide your pbix file in order to make troubleshooting...Thank you.
Measure value
Excel value
Best Regards
Rena
Hi @wooand,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help anyone in the community find the solution easily when they face the same problem with you. Thank you.
Best Regards
Rena
No, I'm afraid it doesn't give the correct results, so I am working on it and will post a solution once we have it.
Hi @wooand ,
If need any assistance from my side about this thread? And whether you can get correct results when use the formula provided by me? Any comment please let me know. Thank you.
Best Regards
Rena
Hi @wooand ,
I just compared the returned value by my measure "ROR" with the value which use the formula "(C12/C2)^(365/COUNT(C2:C12))-1" in excel returned, and found that their values are the same. I don’t know why the returned value is incorrect when applied to your scenario... Could you please provide your pbix file in order to make troubleshooting...Thank you.
Measure value
Excel value
Best Regards
Rena
Sure, happy to, what can I tell you that would help?
Hi @wooand ,
Could you please provide the related screenshot with column IJ146 and IJ25 in excel file and some sample data(exclude sensitive data)? And which field in Power BI file the column IJ146 and IJ25 in excel correspond to? They correspond to field "NAV" and "NAV Change" separately?
Best Regards
Rena
Sure. Bear with me.
OK, here you go. The only columns that matter here are the date, CCY and the NAV. In excel I take the end index value from the NAV column and put that over the first index value, then use the exponent function as per the formula. I've changed the numerator in the second element of the excel equation to reflect the fact that this data is daily, not monthly, hence the change from 12 to 365. Ignore NAV Change and Prior NAV - I can remove that data to make life easier. Finally, note that the CCY column contains many different currencies, each with an index starting from 29 Dec 2017 at a value of 100, so I'm looking for a RoR caclulation that works when a slicer is used to select a CCY. I hope that helps!
Hi @wooand ,
You can create a measure as below:
ROR =
POWER (
DIVIDE (
CALCULATE (
MAX ( 'ROR'[NAV] ),
FILTER ( ALL ( 'ROR' ), 'ROR'[Date] = MIN ( 'ROR'[Date] ) )
),
CALCULATE (
MAX ( 'ROR'[NAV] ),
FILTER ( ALL ( 'ROR' ), 'ROR'[Date] = MAX ( 'ROR'[Date] ) )
)
),
DIVIDE ( 365, COUNTROWS ( 'ROR' ) )
) - 1
Best Regards
Rena
Thank you, but that is returning a negative return irrespective of whether the index has risen or fallen. Can you correct for that? Certainly looks like a step in the right direction.
Hi @wooand ,
Sorry, I made a mistake on getting the value of C593/C2... The previous one is get the value of C2/C593, please correct the formula of measure as below:
ROR = POWER ( DIVIDE ( CALCULATE ( MAX ( 'ROR'[NAV] ), FILTER ( ALL ( 'ROR' ), 'ROR'[Date] = MAX ( 'ROR'[Date] ) ) ), CALCULATE ( MAX ( 'ROR'[NAV] ), FILTER ( ALL ( 'ROR' ), 'ROR'[Date] = MIN ( 'ROR'[Date] ) ) ) ), DIVIDE ( 365, COUNTROWS ( 'ROR' ) ) ) - 1 |
Best Regards
Rena
They are the start and end NAVs for the selected period for the return to be calculated over...
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
75 | |
54 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
50 | |
43 | |
40 |