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
Laila92
Helper V
Helper V

Measure total not working

So I have the known issue of measure totals not showing, but canfigure out why.

 

The following measure works fine:

New customers over time = 
var test = CALCULATE (
    COUNTROWS (
        FILTER (
            CALCULATETABLE (
                ADDCOLUMNS (
                    VALUES ( Sales[ID] ),
                    "DateOfFirstDeal", CALCULATE ( MIN ( Sales[Won Time]) )
                ),
                ALL ( Dates )
            ),
            CONTAINS ( VALUES ( Dates[Date] ), Dates[Date], [DateOfFirstDeal] )
        )
    ),
    FILTER ( Sales, Sales[Won Time] <> BLANK () )
)
return
test

 However, i then add a filter to my calculate table, and that causes the totals to not show:

New customers over time = 
var test = CALCULATE (
    COUNTROWS (
        FILTER (
            CALCULATETABLE (
                ADDCOLUMNS (
                    VALUES ( Sales[ID] ),
                    "DateOfFirstDeal", CALCULATE ( MIN ( Sales[Won Time]) ,FILTER(Sales,Sales[Lost time]=BLANK()))
                ),
                ALL ( Dates )
            ),
            CONTAINS ( VALUES ( Dates[Date] ), Dates[Date], [DateOfFirstDeal] )
        )
    ),
    FILTER ( Sales, Sales[Won Time] <> BLANK () )
)
return
test

 

Why does this one added filter cause the total to not work?

2 REPLIES 2
Anonymous
Not applicable

Hi @Laila92 ,

 

Not very clear. The column total is not only the sum of each column, in fact the column total may also be calculated by measure. It's better to show some sample data and excepted result.

 

Best Regards,

Jay

AllisonKennedy
Super User
Super User

@Laila92  What is [DateOfFirstDeal]  and what does your data model look like?

Your measure looks slightly more complex than I think it may need to be, but I'm not sure exactly what you're trying to calculate?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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