Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |