cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
sandip Frequent Visitor
Frequent Visitor

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

Accepted Solutions
Ani1991 Member
Member

Re: How to check blank and empty value in dax

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
3 REPLIES 3
Ani1991 Member
Member

Re: How to check blank and empty value in dax

hI @sandip 
Try using the function ISBLANK().

 

Thanks.

Ani

sandip Frequent Visitor
Frequent Visitor

Re: How to check blank and empty value in dax

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?

 

Ani1991 Member
Member

Re: How to check blank and empty value in dax

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
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 373 members 3,550 guests
Please welcome our newest community members: