cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MEGHAMONTY
New Member

CUMULATIVE FOR EMAIL

Here is my Data

EmailDateCount
Dan at abc.xyz7/1/202018
Roxy at abc.xyz7/1/202020
Sam at abc.xyz7/1/202022
Dan at abc.xyz8/1/202030
Roxy at abc.xyz8/1/202040
Sam at abc.xyz8/1/202050

 

I am trying to calculate this in POWERBI

 

dan4848
roxy60108
sam72180

 

I am able to get the counts to work easily by calculation for cumulative is not working 

 

Calculate(sum([count]), filter(all(table),table[email]<=max(table[email])))

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @MEGHAMONTY ,

 

Please check:

cumulative count =
CALCULATE (
    SUM ( 'Table'[Count] ),
    FILTER ( ALL ( 'Table' ), 'Table'[Email] <= MAX ( 'Table'[Email] ) )
)

count.JPG

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @MEGHAMONTY ,

 

Please check:

cumulative count =
CALCULATE (
    SUM ( 'Table'[Count] ),
    FILTER ( ALL ( 'Table' ), 'Table'[Email] <= MAX ( 'Table'[Email] ) )
)

count.JPG

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

smpa01
Resident Rockstar
Resident Rockstar

@MEGHAMONTY 

Capture.PNG

 

_sumCount:= SUMX('Table 1','Table 1'[Count])

_cumulativeTotal:= 
VAR _1 = MAX('Table 1'[Date])
VAR _2 = CALCULATE([_sumCount],ALL('Table 1'[Date]),'Table 1'[Date]<=_1)
RETURN _2

New Animated Dashboard: Sales Calendar


smpa01
Resident Rockstar
Resident Rockstar

@MEGHAMONTYdid you try the above ?


New Animated Dashboard: Sales Calendar


Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors