Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a table that contains a bunch of financial forecasts for multiple years. For example purposes, I simplified it to it's bare essence:
Note for example that:
What I would like to do, is find the differences between forecasts. For example:
Note how:
Maybe an important remark:
I'd appreciate if you could help me with this. Thanks for reading.
Kind regards,
Andy
Solved! Go to Solution.
Firstly, you should unpivot your table like below:
Then you can create calculated column to get the PreviousYearForcast:
PreviousYearForecast = CALCULATE ( SUM ( 'Table'[Forecast] ), FILTER ( 'Table', 'Table'[Year] = EARLIER ( 'Table'[Year] ) - 1 && 'Table'[AccountNumber] = EARLIER ( 'Table'[AccountNumber] ) && 'Table'[BudgetYear] = EARLIER ( 'Table'[BudgetYear] ) ) )
Now you just need to use Forecast column minus PreviousYearForecast to get the difference:
Difference = IF([PreviousYearForecast]=BLANK(),BLANK(),'Table'[Forecast]-'Table'[PreviousYearForecast])
Regards,
I have a table that contains a bunch of financial forecasts for multiple years. For example purposes, I simplified it to it's bare essence:
Note for example that:
What I would like to do, is find the differences between forecasts. For example:
Note how:
Maybe an important remark:
I'd appreciate if you could help me with this. Thanks for reading.
Kind regards,
Andy
Firstly, you should unpivot your table like below:
Then you can create calculated column to get the PreviousYearForcast:
PreviousYearForecast = CALCULATE ( SUM ( 'Table'[Forecast] ), FILTER ( 'Table', 'Table'[Year] = EARLIER ( 'Table'[Year] ) - 1 && 'Table'[AccountNumber] = EARLIER ( 'Table'[AccountNumber] ) && 'Table'[BudgetYear] = EARLIER ( 'Table'[BudgetYear] ) ) )
Now you just need to use Forecast column minus PreviousYearForecast to get the difference:
Difference = IF([PreviousYearForecast]=BLANK(),BLANK(),'Table'[Forecast]-'Table'[PreviousYearForecast])
Regards,
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |