Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

smpa01
Super User
Super User

@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
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

@MEGHAMONTYdid you try the above ?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.