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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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