Forum Discussion

ReadTheIron's avatar
ReadTheIron
Helper III
3 years ago
Solved

Replace codes with full text based on table

I have one table of records that uses abbreviations to describe problem codes, like this:   EventTable Date Problem Code 1/2/2022 ABC 1/3/2022 CDE 1/3/2022 ABC 1/4/2022 XYZ ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi  ReadTheIron ,

     

    Here are the steps you can follow:

    1. Create measure.

    Measure =
    var _select=SELECTCOLUMNS('EventTable',"1",[Problem Code])
    return
    MAXX(
        FILTER(ALL('ProblemKey'),
        'ProblemKey'[Problem Code] in _select),[Problem Description])

    2. Result:

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly