Forum Discussion
ThornTech
4 years agoFrequent Visitor
Tracking peak Equity over time
I am working on a dashboard where I need to track the max value from the start of the data to now. The dataset has multiple strategies in it denoted by "StratID" (1000000, 2000000, 3000000, etc... ...
- 4 years ago
You can use ALLEXCEPT,
C_Peak Strat = CALCULATE ( MAX ( [Balance] ), ALLEXCEPT ( History, History[StratID] ), History[Trade ID] <= EARLIER ( History[Trade ID] ) )
johnt75
4 years agoSuper User
You can use ALLEXCEPT,
C_Peak Strat =
CALCULATE (
MAX ( [Balance] ),
ALLEXCEPT ( History, History[StratID] ),
History[Trade ID] <= EARLIER ( History[Trade ID] )
)