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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
drewoplandevers
New Member

Creating Conditional Column to tell if field is blank

Hello!

I've got data where some rows are blank for a given field. How would I create a calculated column that returns "Blank" if [Site Parcel Number] is blank for that row, and "Not Blank" if the [Site Parcel Number] field of the row is populated with anything? I've looked online, and it seems most other similar solutions apply to more specific use cases that make them non-applicable to this. Any help would be greatly appreciated.

Thanks!

 

1 ACCEPTED SOLUTION
djurecicK2
Super User
Super User

2 REPLIES 2
djurecicK2
Super User
Super User

Hi @drewoplandevers ,

 You can use IF and ISBLANK to achieve this:

https://learn.microsoft.com/en-us/dax/isblank-function-dax

 

I tried ValidParcel = if((sblank('ValidRows'[Site Parcel Number]),0,1) , but the returned information is a mess. There's several hundred thousand rows, so there should be more of both. I did re-verify that the rows were actually blank. Any idea on why this wouldn't be working, the code seems right to me? Also, thanks for such a rapid reply!

drewoplandevers_0-1675280483219.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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