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
MuniqueCrespo
Helper I
Helper I

SUM total at the end when using If( not( ISBLANK)

Hello, 

 

I have this formula below that counts the # of Customer's ID that had revenue >$0 monthly. It works great. 

 

 

 

BP #T4Bs = COUNTROWS(
    FILTER(
        SUMMARIZE(
            CALCULATETABLE(
                VALUES('dContact List'[Access Number]),
                DATESBETWEEN(
                    dCalendar[calendar Date],
                    EDATE(MIN(dCalendar[calendar Date]),0),
                    MAX(dCalendar[Calendar Date])
                )
            ),
        'dContact List'[Access Number],
        "Metric",CALCULATE(
            [BP Trxs Fees],
            DATESBETWEEN(
                dCalendar[calendar Date],
                EDATE(MIN(dCalendar[calendar Date]),0),
                MAX(dCalendar[calendar Date])
                )
            )
        ),
         [Metric]>.1
    )
)

 

 

 

 I have another dax that does the same for another service. the measure is called [PR # T4Bs]. 

Now, I need to create a measure that in case [BP # T4Bs] =1 and [PR # T4Bs]=1, I want them to count the Customer ID for each month. 
I created this Dax, but total is 1 at the end. I need the logic to count how many Customers IDs has both measures =1.

 

 

 

Combo Users = (if(not(ISBLANK([BP #T4Bs]))
&& not(ISBLANK([PR #T4Bs])),
1,BLANK()))

 

 

 

Any help would be much appreciated. 

I need the total to sum Total based on customersIDI need the total to sum Total based on customersID

Thanks, 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @MuniqueCrespo 

 

You can try the following methods.

Combo Users = 
IF (
    HASONEVALUE ( 'Table'[ID] ),
    IF (
        NOT ( ISBLANK ( [BP # T4Bs] ) ) && NOT ( ISBLANK ( [PR # T4Bs] ) ),
        1,
        BLANK ()
    ),
    CALCULATE (
        COUNT ( 'Table'[ID] ),
        FILTER ( ALL ( 'Table' ), [BP # T4Bs] = 1 && [PR # T4Bs] = 1 )
    )
)

vzhangti_0-1657530695958.png

The function IF (HASONEVALUE ()) controls the output of Total.

 

Best Regards,

Community Support Team _Charlotte

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

2 REPLIES 2
MuniqueCrespo
Helper I
Helper I

thank you so much, worked perfectly! 

v-zhangti
Community Support
Community Support

Hi, @MuniqueCrespo 

 

You can try the following methods.

Combo Users = 
IF (
    HASONEVALUE ( 'Table'[ID] ),
    IF (
        NOT ( ISBLANK ( [BP # T4Bs] ) ) && NOT ( ISBLANK ( [PR # T4Bs] ) ),
        1,
        BLANK ()
    ),
    CALCULATE (
        COUNT ( 'Table'[ID] ),
        FILTER ( ALL ( 'Table' ), [BP # T4Bs] = 1 && [PR # T4Bs] = 1 )
    )
)

vzhangti_0-1657530695958.png

The function IF (HASONEVALUE ()) controls the output of Total.

 

Best Regards,

Community Support Team _Charlotte

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

 

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