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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
nuttybuddy
Frequent Visitor

Replicate ISNULL() in power BI DAX

Hi guys

I use the ISNULL() function in SAP Webi as below:

Customer Type = if(ISNULL([Customer type]),"",[Customer type])

 

How can I replicate this as a calculated measure in Power BI DAX?

 

 

Thanks in advance

5 REPLIES 5
Anonymous
Not applicable

I have solved this by going back to the query editor and adding a transformation step to replace values.  Depending on your data model this might work.  On the column, click Replace Values (Transform tab), Value to Find = null, Replace With your new value.

v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @nuttybuddy,

 

ISNULL is not a supported function in DAX. You should replace it with ISBLANK.

1.PNG

 

You said ISBLANK returned error, what error did you get?

 

Regards,

Yuliana GU

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

ISBLANK() or possibly [Column] = ""



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

ISBLANK() is giving me errors..

 

Will try the other option...

That sounds very strange, I didn't even know that ISBLANK could throw errors.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.