Forum Discussion
Running Total for specific categories
- 5 years ago
Hi, BigKev
Try to create a column like this:
Column = CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( ALL ( 'Table' ), 'Table'[Department] = EARLIER ( 'Table'[Department] ) && 'Table'[Type] = EARLIER ( 'Table'[Type] ) && 'Table'[Date] <= EARLIER ( 'Table'[Date] ) ) )result:
Please refer to the attachment below for details
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - 5 years ago
Hi,
This calculated column formula works
=CALCULATE(SUM(Data[Value]),FILTER(Data,Data[Type]=EARLIER(Data[Type])&&Data[Department]=EARLIER(Data[Department])&&Data[Date]<=EARLIER(Data[Date])))Hope this helps.
BigKev , Try a meaure like
Sumx(filter(allselected(Table), table[Type] = max(Table[Type]) && Table[Date] = max(Table[Date])), Table[Value])
- BigKev5 years ago
Helper III
Hi Amit,
I need the solution for calculated column and not measure
Cheers,
Kev
- amitchandak5 years ago
Super User
BigKev , replace Max -> earlier and remove allselected and try in column
This trick work, most of the time
Sumx(filter((Table), table[Type] = earlier (Table[Type]) && Table[Date] = earlier (Table[Date])), Table[Value])