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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Making a new column with blank values doesnt change into blank values

I tried to make a new column by adding a if statement in dax,

Status ASL = IF ( 'Fct rituitval'[Uitval gedeeltelijk (#)] = 1, "Gedeeltelijk gereden",
IF ('Fct rituitval'[Uitval volledig (#)] = 1, "Niet gereden"))

It makes values that got 1 in 'Uitval gedeeltelijk change into "Gedeeltelijk gereden" and it makes values that got 1 in "Uitval volledig" change into "Niet gereden". Blank values that doesnt has "Uitval gedeeltelijk" or "Uitval volledig" changes into values that duplicate the value "Gedeeltelijk gereden" or "Niet gereden". I just want them to change into the value "Gereden" or it just has to be blank. Why does it duplicate the other values? And can anyone help me out PLS

blank is not blank.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Please check the following methods.

Column:

Status ASL =
IF (
    'Fct rituitval'[Uitval gedeeltelijk (#)] = 1,
    "Gedeeltelijk gereden",
    IF ( 'Fct rituitval'[Uitval volledig (#)] = 1, "Niet gereden", "Gereden" )
)

vzhangti_0-1648186613126.png

Is this the result you were expecting?

 

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.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Please check the following methods.

Column:

Status ASL =
IF (
    'Fct rituitval'[Uitval gedeeltelijk (#)] = 1,
    "Gedeeltelijk gereden",
    IF ( 'Fct rituitval'[Uitval volledig (#)] = 1, "Niet gereden", "Gereden" )
)

vzhangti_0-1648186613126.png

Is this the result you were expecting?

 

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.

MFelix
Super User
Super User

Hi @Anonymous ,

 

The code seems correct, are you abble to share a sample file?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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