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.
Hello
I am trying to get deltas from snapshotted data and I can't seem to figure out how.
I snapshotdata (in SFDC) daily by Account and ARR for that account and bring store that value. I would love to be able to calculate the delta of any daily changes for a specific account. Below is what I would love to get.
I want to create a colum (Delta below) that will show me what accounts changed from the previous date. Small sample size below.
Name | ARR | Date | Delta |
Account 1 | $ 68,223 | 29-Oct | |
Account 1 | $ 26,656 | 30-Oct | ($41,567) |
Account 2 | $ 68,162 | 29-Oct | |
Account 2 | $ 68,162 | 30-Oct | $0 |
Account 3 | $ 177,324 | 29-Oct | |
Account 3 | $ 1,679 | 30-Oct | ($175,645) |
Account 4 | $ 12,819 | 29-Oct | |
Account 4 | $ 8,071 | 30-Oct | ($4,748) |
Account 5 | $ 180 | 29-Oct | |
Account 5 | $ 180 | 30-Oct | $0 |
I have over 500 accounts so the snapshot have over 500 records daily.
How can I get a formula to show me this? thanks in advance
Solved! Go to Solution.
@edayeh ,
You can use this code to create a calculated column:
Delta =
VAR _date = CALCULATE(MAX('Table'[Date]), FILTER('Table', 'Table'[Date] < EARLIER('Table'[Date])))
RETURN IF(_date <> BLANK(), CALCULATE(SUM('Table'[ARR]), FILTER('Table', 'Table'[Name] = EARLIER('Table'[Name]) && [Date] = _date)) - 'Table'[ARR], BLANK())
@edayeh ,
You can use this code to create a calculated column:
Delta =
VAR _date = CALCULATE(MAX('Table'[Date]), FILTER('Table', 'Table'[Date] < EARLIER('Table'[Date])))
RETURN IF(_date <> BLANK(), CALCULATE(SUM('Table'[ARR]), FILTER('Table', 'Table'[Name] = EARLIER('Table'[Name]) && [Date] = _date)) - 'Table'[ARR], BLANK())
THANK YOU SO MUCH.....YES
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 |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |