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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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