Forum Discussion
Replace NULL
- 9 years ago
Try this one dude.
Create new calculated column using DAX.
Column = if ( isblank( 'Incidents' [Province]), "Unspecifed" , 'Incidents' [Province])
This willhelp u if not let me know i will help u
- 9 years ago
Alternatively in Power Query you can use Table.TransformColumns, so you don't need a new coumn:
= Table.TransformColumns(Source, {"Province", each if _ is null then "unspecified" else _})
- 9 years ago
Hi COMtrac,
In addition, have you tried the "Replace Values" option within Query Editor? It should also work.:smileyhappy:
1. Select the cell value you want to change(select null in this case) in Query Editor.
2. Click "Replace Values" option under Home tab. Then you should be able to change null to "Unspecified" like below.
Regards
hi I want to fill the missing value as "Blanks" in the data so that I can display the list in slicer with one line item as Blanks, so how to fill the blanks with the word "Blanks"
Thank you in advance
I was having the same problem as I think you are having.
The issue seems to be that the text version of "null" is lowercase.
Here is what I did:
- Use Format option to set the column values to UPPERCASE
- Then use Replace Values to change NULL to null
It treats NULL as being text, but null as being an actual null value.
- Sunnie4 years agoHelper I
so much easier , thank you!