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
sandip
Helper III
Helper III

How to check blank and empty value in dax

Hi,

I am using below DAX

Return Type =
var vTxt = IF(ISEMPTY(CALCULATETABLE(SAVO_QBR_TEMP, SAVO_QBR_TEMP[Return_Type]<>BLANK()))=False, SAVO_QBR_TEMP[Return_Type], "NULL")
return IF(vTxt<>"NULL" && not ISBLANK(SAVO_QBR_TEMP[Return_Type]), SAVO_QBR_TEMP[Return_Type])
and My values are showing as below:
 
but it does not working. Please help in this case.Blank Return Type.PNG
 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @sandip 
Please check this.
I didn't get your DAX expression. I guess you are creating a measure to check the functionality. Try creating a calculated column.
I created some dummy data with some progress column values as blank.
I created a calculated column like below,

BLANKCHECK = IF(ISBLANK(Dummy[Progress]),0,Dummy[Progress])
Here is what I get,
image.png
I have replaced the blank values with 0 in the BLANKCHECK column.
Hope this helps!!
 
Thanks,
Ani

View solution in original post

3 REPLIES 3
Ani1991
Resolver III
Resolver III

hI @sandip 
Try using the function ISBLANK().

 

Thanks.

Ani

Hi,

I am doing the below DAX and it is not working properly:

IF(NOT ISBLANK('SAVO_QBR_TEMP'[Return_Type]) ,'SAVO_QBR_TEMP'[Return_Type])

Please advise what to do now?

 

Hi @sandip 
Please check this.
I didn't get your DAX expression. I guess you are creating a measure to check the functionality. Try creating a calculated column.
I created some dummy data with some progress column values as blank.
I created a calculated column like below,

BLANKCHECK = IF(ISBLANK(Dummy[Progress]),0,Dummy[Progress])
Here is what I get,
image.png
I have replaced the blank values with 0 in the BLANKCHECK column.
Hope this helps!!
 
Thanks,
Ani

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.