Forum Discussion

AspireCraig's avatar
AspireCraig
New Member
7 years ago

Replacing an Integer value with Text using a DAX Formula

Hello everyone,

I am struggling with what seems like a simple task. I am new to Power Bi and using a directy query, my vaules are 1,2,3,4,5, etc. in a field called Types and I want to repalce the Ids with a friendly name, 1= Marketing, 2=PSA, etc. 

I Created a new colum and called it pNames. I have tried using the IF function with something like 

=IF(Query1[TYPES]="1", "MARKETING") on my pType field I receive "Model object names must be non-empty"


What function and syntax would I use for this?

2 Replies