Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |