cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

IF for 0 and blank (DAX)

Hi team

 

pls help, i have problem when creating Dax for this differencing between zero(0) and blank .

im willing to create similiar with table below

forumpbi.png

 

 

 

appreciate any help

 

thanks

syaiful

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: IF for 0 and blank (DAX)

Hi @syaifulefendi 

 

check this out.

 

Check_BLANK.png

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

I work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #BetterTogether

View solution in original post

2 REPLIES 2
Highlighted
Microsoft
Microsoft

Re: IF for 0 and blank (DAX)

@syaifulefendi 

You can use ISBLANK function to differ 0 and blank. 

 

result =
var ok_check = IF('Table'[Remark]=0,"Check","OK")
Return IF(ISBLANK([Remark]),"NA",ok_check)

Best,
Paul
Highlighted
Super User III
Super User III

Re: IF for 0 and blank (DAX)

Hi @syaifulefendi 

 

check this out.

 

Check_BLANK.png

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

I work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #BetterTogether

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors