Forum Discussion
djbuncle
Helper I
7 years agoMulti-Step Calculation
Hi. The issue I'm faced with is coming up with a calculation which uses 3 other calculations that are sliced on [Months Since Reg] (on columns) however the final result will be a single value. To e...
- Anonymous7 years ago
[Expected Value] = SUMX( ALL ( T[Months Since Reg ] ), [% Split] * [Value Per Player] )
You can try the above... but I think you'll need some adjustments with respect to other filters. I don't have enough information to tell you exactly what the formula should look like.
By the way, [Months Since Reg] must be an attribute in a dimension (not in a fact table).
Best
D.
Stachu
Community Champion
7 years agoCan you add sample tables (in format that can be copied to PowerBI) from your model with anonymised data? Like this (just copy and paste into the post window).
| Column1 | Column2 |
| A | 1 |
| B | 2.5 |
probably it will be something like this
Measure =
VAR __Summary =
SUMMARIZECOLUMNS (
'Table',
'Table'[Country],
'Table'[Months Since Reg],
"Split", [% Split],
"VPP", [Value Per Player]
)
RETURN
SUMX ( __Summary, [Split] * [VPP] )