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
avardaneg
New Member

Cumulative Total in a stacked column chart - issue with column series

Hi All,

I'm a newbie so forgive me in case my question is dumb, but I've been banging my head looking at other posts and cannot figure out a solution for my issue. I've created a measure to calculate cumulative counts for my column chart. The count works fine for the totals until I add a column to the columns series to stratify the count:Presentation1.jpg

This is my measure:

CumCount =
CALCULATE (
COUNT( CN_Data[CNStartDate] ),
FILTER (
ALLNOBLANKROW( CN_Data ),
CN_Data[Superseded] = "N" && CN_Data[CNState] = "Implementation" && CN_Data[DesignerCN] = "Y" && CN_Data[CNStartDate] <= MAX(CN_Data[CNStartDate]
)
)
)
 
What am I missing here?
1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @avardaneg 

 

The problem is at ALLNOBLANKROW. You could use ALLEXCEPT instead and put the column which is added to the columns series in it. This can keep the filter on the column series field. ALLEXCEPT function (DAX)

CumCount =
CALCULATE (
    COUNT ( CN_Data[CNStartDate] ),
    FILTER (
        ALLEXCEPT ( CN_Data, CN_Data[Column series field] ),
        CN_Data[Superseded] = "N"
            && CN_Data[CNState] = "Implementation"
            && CN_Data[DesignerCN] = "Y"
            && CN_Data[CNStartDate] <= MAX ( CN_Data[CNStartDate] )
    )
)

 

Below is an example with SUM. The logic is similar. 

vjingzhang_0-1645426167076.png

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @avardaneg 

 

The problem is at ALLNOBLANKROW. You could use ALLEXCEPT instead and put the column which is added to the columns series in it. This can keep the filter on the column series field. ALLEXCEPT function (DAX)

CumCount =
CALCULATE (
    COUNT ( CN_Data[CNStartDate] ),
    FILTER (
        ALLEXCEPT ( CN_Data, CN_Data[Column series field] ),
        CN_Data[Superseded] = "N"
            && CN_Data[CNState] = "Implementation"
            && CN_Data[DesignerCN] = "Y"
            && CN_Data[CNStartDate] <= MAX ( CN_Data[CNStartDate] )
    )
)

 

Below is an example with SUM. The logic is similar. 

vjingzhang_0-1645426167076.png

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Hi Jing,

 

Thanks a lot for your help!!! 👍

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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