Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi!
I really tried hard for a longer time but now I'm dependend on your help I suppose :).
I'm currently creating a dashboard for monthly finance reportings. It's easy in Excel, but I struggle to implement it into PowerBI.
We want to add a simple Forecasting for our revenue.
It looks like this:
The difference between Plannend and Reality is added on the Planned-Value of the next month. This is what we call "Forecast".
It's so simple, yet I can't get it to work.
I have the cumulative valies of Planned as:
What it should be:
I'd appreciate your help alot, as I really put more work into what seems as a really easy problem but for me (as a PowerBI beginner) it's really not!
Thanks!
Solved! Go to Solution.
Please try this measure:
Forecasting =
VAR _vtable =
SUMMARIZE (
ALLSELECTED ( 'Date-Table' ),
'Date-Table'[Month],
'Date-Table'[Month Number],
"__Planned", [Planned],
"__Difference", [Forecasting Difference]
)
VAR _vtable2 =
ADDCOLUMNS (
_vtable,
"__Outcome",
IF (
MAXX (
FILTER ( _vtable, [Month Number] = EARLIER ( 'Date-Table'[Month Number] ) - 1 ),
[__Difference]
)
<> BLANK (),
[__Planned]
+ MAXX (
FILTER ( _vtable, [Month Number] = EARLIER ( 'Date-Table'[Month Number] ) - 1 ),
[__Difference]
)
)
)
RETURN
MAXX (
FILTER ( _vtable2, [Month] = SELECTEDVALUE ( 'Date-Table'[Month] ) ),
[__Outcome]
)
I create a set of sample, and the result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks alot! It looks much more complicated than I have thought it would look like.
Would not been able to have done this without your help, thanks alot!
Please try this measure:
Forecasting =
VAR _vtable =
SUMMARIZE (
ALLSELECTED ( 'Date-Table' ),
'Date-Table'[Month],
'Date-Table'[Month Number],
"__Planned", [Planned],
"__Difference", [Forecasting Difference]
)
VAR _vtable2 =
ADDCOLUMNS (
_vtable,
"__Outcome",
IF (
MAXX (
FILTER ( _vtable, [Month Number] = EARLIER ( 'Date-Table'[Month Number] ) - 1 ),
[__Difference]
)
<> BLANK (),
[__Planned]
+ MAXX (
FILTER ( _vtable, [Month Number] = EARLIER ( 'Date-Table'[Month Number] ) - 1 ),
[__Difference]
)
)
)
RETURN
MAXX (
FILTER ( _vtable2, [Month] = SELECTEDVALUE ( 'Date-Table'[Month] ) ),
[__Outcome]
)
I create a set of sample, and the result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
13 | |
8 | |
8 | |
7 | |
5 |
User | Count |
---|---|
23 | |
15 | |
15 | |
10 | |
7 |