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

calculated column with Isblank

Hi,

 

This is my dummy data but actually, I want to work on a huge dataset.

GPP is a calculated column. If the Description column is blank then "NO" else "YES".

 

I tried to use If ISBlank function but sometimes it gives correct output sometimes not. 

 

sbhan4_0-1606792415778.png

 

6 REPLIES 6
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

As mentioned by Nathaniel_C, maybe you have space in column,please try the following : 

 

GPP1 = IF(MAX('Table'[Descriptions]) =" " || ISBLANK(MAX('Table'[Descriptions])),"No","Yes")

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

PhilipTreacy
Super User
Super User

Hi @Anonymous 

How exactly does that formula not work?  You need to be specific and show the incorrect results.  The formula works fine for me even woth a cell that just contains spaces.

If you can share some actual, real data, specifically the data that gives the incorrect result, that would help.

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Nathaniel_C
Super User
Super User

Hi @Anonymous ,

Try this

GPP = IF(MAX('Table'[Descriptions]) ="","No","Yes")


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 

gp.PNG





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

Proud to be a Super User!




Anonymous
Not applicable

@Nathaniel_C

Thank you for your help! The formula doesn't give the correct answer sometimes.

Hi @Anonymous ,
It is possible that the cell is not empty, so for instance if there was a space in the cell.  Is there any way to check that in your data?
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





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

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , New column

Is Blaknk = if(isblank([description]) , "Yes" ,"No")

 

Not is blank  = if(isblank([description]) , "No" ,"Yes")

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.