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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kryer89
New Member

Cumulative count

Hi,

 

i'm trying to plot a line chart with cumulative count of rows but it's not working.

 

my data is like:

IDStartDate
ID102/10/2023
ID202/04/2024

ID3

null
ID405/10/2023
ID512/01/2024
ID612/01/2024
ID715/05/2024

 

I want to plot a chart with this data

Count1246
date02/10/202305/10/202312/01/202415/05/2024

 

but I cannot figure out how to do it, I've tried with this measure

 

 

 

CALCULATE (
    COUNTROWS(  'MASTER' ),
    FILTER (
        ALL ( 'MASTER' ),
        'MASTER'[StartDate] <= MAX ( 'MASTER'[StartDate] )
    )
)

 

 

 

 but what I get is the cumulative of the cumulative, like

Count13713
date02/10/202305/10/202312/01/202415/05/2024

 

Is there any way I can fix it?

 

Thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @kryer89 ,

 

Please try code as below.

Measure = 
CALCULATE (
    COUNTROWS(  'MASTER' ),
    FILTER (
        ALLSELECTED( 'MASTER' ),
        'MASTER'[StartDate] <= MAX ( 'MASTER'[StartDate] ) && MASTER[StartDate]<>BLANK()
    )
)

Result is as below.

vrzhoumsft_0-1729129670960.png

 

Best Regards,
Rico Zhou

 

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
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1729133918044.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @kryer89 ,

 

Please try code as below.

Measure = 
CALCULATE (
    COUNTROWS(  'MASTER' ),
    FILTER (
        ALLSELECTED( 'MASTER' ),
        'MASTER'[StartDate] <= MAX ( 'MASTER'[StartDate] ) && MASTER[StartDate]<>BLANK()
    )
)

Result is as below.

vrzhoumsft_0-1729129670960.png

 

Best Regards,
Rico Zhou

 

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

Arul
Super User
Super User

@kryer89 ,

Which count are you taking from the data given?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors