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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors