cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PBI_newuser
Post Prodigy
Post Prodigy

How to flag the "Zero" rows but ignore the Blank rows

Hi, I have the below sample dataset and i wish to flag those NPS between 0 to 6 as 1, but the below column doesn't work.

It considered 0 and BLANK as the same value. 

 

Detractor Flag = 
IF('Table'[NPS]=BLANK(),BLANK(),
IF('Table'[NPS]>=0 && 'Table'[NPS]<=6,1
,0))

 

Serial NumberNPSDetractor FlagExpected Output for Detractor Flag
SN-111   
SN-2220 1
SN-333411
SN-4440 1
SN-555511
1 ACCEPTED SOLUTION
Jihwan_Kim
Community Champion
Community Champion

Hi, @PBI_newuser 

Please try the below.

instead of =blank() , try ==blank()

 

Detractor Flag CC =
IF('Table'[NPS]==BLANK(),BLANK(),
IF('Table'[NPS]>=0 && 'Table'[NPS]<=6,1
,0))
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

View solution in original post

2 REPLIES 2
CNENFRNL
Super User III
Super User III

Flag = 
IF(
    NOT ISBLANK( 'Table'[NPS] ),
    IF( 'Table'[NPS] * ( 'Table'[NPS] - 6 ) <= 0, 1, 0 )
)

Screenshot 2021-06-16 112246.png

Jihwan_Kim
Community Champion
Community Champion

Hi, @PBI_newuser 

Please try the below.

instead of =blank() , try ==blank()

 

Detractor Flag CC =
IF('Table'[NPS]==BLANK(),BLANK(),
IF('Table'[NPS]>=0 && 'Table'[NPS]<=6,1
,0))
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

View solution in original post

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors