cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
krichmond
Helper III
Helper III

Need Help Converting Codes Into Descriptions Using DAX

I have a field called "Mail Back Type" that resides in a table called "v_rp005_rejectreport" and within this field there could be a varying number of code values stored (see screenshot). Is it possible using DAX to take those code values and convert them into descriptions, separated by commas? The key of what each code represents is also provided below.

 

I tried doing this myself but was getting hung up on the situations where multiple codes are present in the "Mail Back Type" field.

 

MLBR01 = Signature Not Matching With Name

MLBR02 = Primary Insured

MLBR03 = Missing Required Information

MLBR04 = Need Of Notarized Document

MLBR05 = Account Number Required

MLBR06 = Coverage Amount Required

MLBR07 = Multiple Coverage Amounts Selected

MLBR08 = Credit Card Number Required

MLBR09 = Signature Required

 

Screenshot 2023-06-01 060451.png

1 REPLY 1
amitchandak
Super User
Super User

@krichmond , I think you have to use substitute multiple times in DAX

https://learn.microsoft.com/en-us/dax/substitute-function-dax

 

example

substitute(substitute([col1],"MLBR01","Signature Not Matching With Name"),"MLBR02","Primary Insured")

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors