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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
medwards
Frequent Visitor

Help with ISBLANK function

Hope someone can help with this ISBLANK function:

 

# Tables with no person assigned = CALCULATE(DISTINCTCOUNT(responsibility[table_id]),(responsibility[role_id]="Engineer" && ISBLANK(responsibility[user_id])))

 

It is currently not returning a number, so I must have done something wrong here.

 

Appreciate any help!

4 REPLIES 4
medwards
Frequent Visitor

Thanks for the various solutions. For some reason, the formulas are not capturing the blank values. I'm trying different fields besides user_id like user_lastname but still not recognizing blanks. Very strange

Hi, @medwards 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.

 

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.

v-zhangti
Community Support
Community Support

Hi, @medwards 

 

You can try the following methods.

Sample data:

vzhangti_0-1675912677411.png

Measure:

# Tables with no person assigned = 
CALCULATE ( DISTINCTCOUNT ( responsibility[table_id] ),
        FILTER ( ALL ( responsibility ),
            responsibility[role_id] = "Engineer"
                && ISBLANK ( responsibility[user_id] )
        )
    )

Or

Measure = 
CALCULATE ( DISTINCTCOUNT ( responsibility[table_id] ),
        FILTER ( ALL ( responsibility ),
            responsibility[role_id] = "Engineer"
                &&  responsibility[user_id] = BLANK()
        )
    )

vzhangti_1-1675912701751.png

Is this the result you expect?

 

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.

 

amitchandak
Super User
Super User

@medwards , seem fine, need data to test

 

Try like this

 


# Tables with no person assigned = CALCULATE(DISTINCTCOUNT(responsibility[table_id]),Filter(responsibility, responsibility[role_id]="Engineer" && ISBLANK(responsibility[user_id])))

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors