Forum Discussion
Cumulative Total , no dates
- 4 years ago
UrAvgWally Yeah, there is a stray ) in there:
Measure = VAR PNo = MAX(PeriodicTable[PeriodNo]) VAR Periods = SELECTCOLUMNS( FILTER( ALL(PeriodicTable), [PeriodNo] <= PNo ), "__PeriodMFMA", PeriodicTable[PeriodMFMA] ) VAR Table = FILTER(UnpivotCP,[PeriodMFMA] IN Periods) RETURN SUMX( Table,[Value])
Greg_Deckler Awesome! The code fixed the issue and is now showing cumulative.
Although my slicer for different functions not working for that.I ideally want to be able to Slice by function , is there a way to enable that? As per above I use RSKCL[Function] as a slicer, which has a relation to the Funder column.
UrAvgWally You will want to use ALLEXCEPT instead of ALL in that case. Basically ignore all of the context except for the context you specify.
- UrAvgWally4 years ago
Helper I
Alright, thanks . Thank you for being patient with me. Will start reading the book on Dax over the weekend to learn, it is arriving tommorow.
The Allexcept is having syntax error :
- Greg_Deckler4 years ago
Community Champion
UrAvgWally ALLEXCEPT takes additional parameters. So something like:
VAR Table1 = FILTER(ALLEXCEPT(UnpivotCP, 'UnpivotCP'[Function]),[PeriodMFMA] IN Periods)So that code would ignore all context other than context created by a Function column in your UnpivotCP table for example.