Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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 Number | NPS | Detractor Flag | Expected Output for Detractor Flag |
| SN-111 | |||
| SN-222 | 0 | 1 | |
| SN-333 | 4 | 1 | 1 |
| SN-444 | 0 | 1 | |
| SN-555 | 5 | 1 | 1 |
Solved! Go to Solution.
Hi, @PBI_newuser
Please try the below.
instead of =blank() , try ==blank()
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
Flag =
IF(
NOT ISBLANK( 'Table'[NPS] ),
IF( 'Table'[NPS] * ( 'Table'[NPS] - 6 ) <= 0, 1, 0 )
)
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi, @PBI_newuser
Please try the below.
instead of =blank() , try ==blank()
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 you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |