Forum Discussion
Cumulative Sum over multiple columns
- 4 years ago
AM_VRSResearch , Based on what I got
Try like
CALCULATE(
SUM('Table'[TotalByMonth]),
FILTER(
ALLSELECTED('Table'[Year|Employee], 'Table'[Employee], 'Table'[Year]),
ISONORAFTER('Table'[Year|Director], MAX('Table'[Year|Employee]), DESC) && 'Table'[Employee] =max('Table'[Employee])
)
)Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
AM_VRSResearch , Based on what I got
Try like
CALCULATE(
SUM('Table'[TotalByMonth]),
FILTER(
ALLSELECTED('Table'[Year|Employee], 'Table'[Employee], 'Table'[Year]),
ISONORAFTER('Table'[Year|Director], MAX('Table'[Year|Employee]), DESC) && 'Table'[Employee] =max('Table'[Employee])
)
)
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- AM_VRSResearch4 years agoFrequent Visitor
This was the answer I was looking for. Thank you.