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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ZachUnger
Helper II
Helper II

Replace blank fields with "Uninformed"

Hi Team

 

Hoping someone can help, I'm trying to place "UNinformed in the blank columns for Inherent risk and have tried the below but still get a blank result. I have used the below before and has worked but for some reason, this one is not. 

 

Inherent risk of compliance 23 = IF( ISBLANK(D_ACC_Inspections[InspectionStatus]) || (D_ACC_Inspections[InspectionStatus]) = "", "Uninformed", (D_ACC_Inspections[InspectionStatus]))
 

ZachUnger_0-1742885742013.png

I've also tried the below and it still leaves it blank. 

ZachUnger_1-1742886065295.png

 

Any help is appreciated. 

Cheers 

Zach

19 REPLIES 19
v-ssriganesh
Community Support
Community Support

Hi @ZachUnger,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

Unfortunately, none of these solutions worked, and I'm looking into the data as there may be an issue there. Appreciate the support. 

Hi @ZachUnger,

We appreciate your efforts and thank you for sharing the update on the issue. If the issue has been resolved, kindly share the insights, as this will assist other community members in resolving similar issues more efficiently.

Thankyou.

Hi @ZachUnger,
Awe haven’t heard back from you in a long while, we’re closing this thread. For any further discussions or questions, please start a new post in the Microsoft Fabric Community Forum — we’ll be happy to assist.

Thank you for being part of the Microsoft Fabric Community.

v-ssriganesh
Community Support
Community Support

Hi @ZachUnger,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

v-ssriganesh
Community Support
Community Support

Hi @ZachUnger,
Thank you for reaching out to the Microsoft Fabric Forum Community.

I have reproduced the scenario using sample data and was able to achieve the expected output by replacing blank fields in the Inherent risk of compliance column with "Uninformed."

To resolve this, I created a new calculated column named Inherent risk of compliance (Fixed) using the following DAX formula:

Inherent risk of compliance (Fixed) = IF(

    ISBLANK(D_ACC_Inspections[Inherent risk of compliance]) || TRIM(D_ACC_Inspections[Inherent risk of compliance]) = "",

    "Uninformed",

    D_ACC_Inspections[Inherent risk of compliance]

)

This formula checks for blank cells in the Inherent risk of compliance column (including cells with spaces using TRIM()) and replaces them with "Uninformed," while retaining the original values for non-blank cells.

I’ve attached a screenshot of the output below for your reference, which shows the original Inherent risk of compliance column alongside the new Inherent risk of compliance (Fixed) column with the blanks replaced. I’ve also attached the .pbix file containing the sample data and the solution for you to review.

vssriganesh_0-1742964058518.png
Thank you, @pankajnamekar25 & @danextian for sharing your valuable insights.

 

If this is helpful, please “Accept it as a solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.

danextian
Super User
Super User

Hi @ZachUnger 

In the query editor, what do the values for those blank spaces show? Are they a null or a blank space? If null put null in the value field.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
pankajnamekar25
Memorable Member
Memorable Member

Hey ,

 

Possible to drop pbix with sample data/Dummy data

pankajnamekar25
Memorable Member
Memorable Member

Hi 

You have to create calulcated column for this use below dax

 

Inherent risk of compliance 23 =
IF(
TRIM(D_ACC_Inspections[InspectionStatus]) = "" || ISBLANK(D_ACC_Inspections[InspectionStatus]),
"Uninformed",
D_ACC_Inspections[InspectionStatus]
)

make sure this column you will use in table , if you need for other column same logic create that columun using same dax by ref revelvant feild.

 

if solution work for you kindly accept it

 

Thank You

Pankaj

Hi Unfortunately that gives me the same result

ZachUnger_0-1742886859992.png

 

else try this 

Inherent risk of compliance 23 =
VAR Status = TRIM(D_ACC_Inspections[InspectionStatus])
RETURN
IF(
Status = "" || ISBLANK(D_ACC_Inspections[InspectionStatus]),
"Uninformed",
Status
)

Now I get this error,

 

The syntax for 'Status' is incorrect. (DAX(VAR Status = TRIM(D_ACC_Inspections[InspectionStatus])RETURNIF(Status = "" || ISBLANK(D_ACC_Inspections[InspectionStatus]),"Uninformed",Status))).

 

I cannot share as won't let me upload .pbix

Inherent risk of compliance 23 =
VAR Status = TRIM(D_ACC_Inspections[InspectionStatus])
RETURN
IF(
Status = "" || Status= Blank()
"Uninformed",
Status
)

have you tried this one

 

 

Yes. Didn't like the status option. 

 

Error message = The syntax for 'status' is incorrect. (DAX(VAR status = TRIM(D_ACC_Inspections[InspectionStatus])RETURNIF(Status = "" || ISBLANK(Status),"Uninformed",Status))).

Error message = The syntax for 'status' is incorrect. (DAX(VAR status = TRIM(D_ACC_Inspections[InspectionStatus])RETURNIF(Status = "" || ISBLANK(Status),"Uninformed",Status))).

Output =SWITCH(
TRUE(),
TRIM(D_ACC_Inspections[InspectionStatus]) = "" || ISBLANK(D_ACC_Inspections[InspectionStatus]), "Uninformed",
D_ACC_Inspections[InspectionStatus]
)

No, appreciate your help but still nothing pulling through, I'll check in with our IT to see if the field is actually containing something I'm missing. 

pankajnamekar25_0-1742888405808.png

This working fine with same senario,

You can use Power Query to replace null as well

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.