Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
i had below DAX, but its not working. i've created a new column "company", company = "No" if account have no value otherwise "yes".
Company = if(ISBLANK('RER 2016'[Account]),"No", "Yes")
but as result, the company column are now all "yes"
Hi @Anonymous,
I would suggest creating the column in the query editor.
In doing so you can use the TRIM function to ensure that there are no leading or trailing spaces.
You can then also potentially use the Captilize Each Word, or Lowercase to ensure that all the values are the same (NOTE: The data in the Query Editor is Case Sensitive)
You can then add a conditional column, which will then load into your Model.
As well as not only will your model be more efficient, but it is also easier to create the columns in the Query Editor.
@Anonymous
Follow the steps in the Picture - In the Query Editor
Transform tab - Format button - Clean - Format button - Trim
Transform tab - Replace Values - 1st field leave empty and 2nd field type null - OK
Home tab - Close & Apply
Formula now works! ![]()
You probably have an empty space in the column rather than a blank()
try
Company = if(ISBLANK('RER 2016'[Account]) || 'RER 2016'[Account]="" ,"No", "Yes")
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 42 | |
| 35 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |