From the course: Advanced Power BI: DAX Language, Formulas, and Calculations
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Solution: Rate of change by commodity - Power BI Tutorial
From the course: Advanced Power BI: DAX Language, Formulas, and Calculations
Solution: Rate of change by commodity
(upbeat music) - [Instructor] To calculate the annualized rate of return, we want to solve for the rate r in the accumulated value formula given that we know the future value in the year 2021, the current value, we'll say in year 2015, and the length of time over which we're doing these calculations. If we solve for r, we see it equals the quantity of the 2021 numbers divided by the 2015 numbers. Then, raising this factor to 1 divided by the total duration between the measurement periods, which equals 1 divided by 6. We'll then subtract 1 to get a rate instead of a rate factor, which is greater than 1. In Power BI Desktop, let's pick up where we left off for the modeling. We're going to use the DAX measure formula to calculate the annualized rate of return. We'll first create a new measure called the Rate of change. For the calculation itself, we're going to work from the inside going out. We'll start by using the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
ALL DAX function5m 2s
-
(Locked)
POWER DAX function5m 37s
-
(Locked)
DIVIDE DAX function6m 22s
-
(Locked)
Variables in DAX formulas7m 4s
-
(Locked)
Iterator DAX functions and SUMX7m 9s
-
(Locked)
FILTER DAX function7m 15s
-
(Locked)
Challenge: Rate of change by commodity55s
-
(Locked)
Solution: Rate of change by commodity2m 37s
-
-
-