Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I am trying to calculate the change of cashflows each year. In the table below, I have the Time step and value columns in the underlying spreadsheet used in my PBI dashboard.
I would like to create a mesaure which outputs the change in values i.e. Time step 1 value less time step 0 value.
I have used the following measure but it is not working as expected (please see screenshot of the table from PBI):
Any help would be greatly appreciated!
Katie
Hi, @Catherinegrace
Please try the below measure.
Change in value =
VAR __PREV_YEAR =
CALCULATE (
SUM ( 'Data Set'[Value] ),
FILTER (
ALL ( 'Data set' ),
'Data Set'[Time step]
= MAX ( 'Data set'[Time Step] ) - 1
)
)
RETURN
SUM ( 'Data Set'[Value] ) - __PREV_YEAR
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi Jihwan,
Thanks for your reply. Unfortunately this is not working and gives:
There is other data in my underlying excel but filtering on the correct parts should give the correct change in value. Please let me know if you have any other suggestions
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 |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
9 |