Forum Discussion
Swapnab
4 years agoNew Member
Replace blanks.nulls in column with another value
Hi I have a below scenario where the New Calculated column need to be derived from Category column .For Category(N/A,Null or blank) value should be Adj's and others would remain same.Can Someone please help how to write this in DAX.
Types(Table Name)
| Category | New Calculated column |
| INT | INT |
| NAT | NAT |
| N/A | Adj's |
| INL | INL |
| MC | MC |
| US_E | US_E |
| OTHER | OTHER |
| HC | HC |
| Null or Blank | Adj's |
Thanks..
Does this work?
IF ( Types[Category] IN { "N/A", "", BLANK() }, "Adj's", Types[Category] )
2 Replies
- AlexisOlson
Super User
Does this work?
IF ( Types[Category] IN { "N/A", "", BLANK() }, "Adj's", Types[Category] )- SwapnabNew Member
It worked.Thank you..