Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
seanrpeters
Frequent Visitor

Translating an entry to another entry in a different table based off of its code

I have a table with a columb of codes and another table that  correlates each of these codes with a description of what it means. Currently I have a bargraph from that first table that displays the amount of entries with that code but instead of the code, I want it to use the translation of what that code means (which is in that second table). Is this something I can do with DAX? 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@seanrpeters 

You need to have the codes of the Table1 in Table2 as well, then, create a calculated column in Table 1 using  the LOOKUPVALUE function  (LOOKUPVALUE function (DAX) - DAX | Microsoft Learn . This way you will be able to use the new column on the X Axis.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
seanrpeters
Frequent Visitor

@Fowmy  I used this DAX formula: LOOKUPVALUE(My First Table Description, First Table Code, Second Table Code), but it gave me an error stating "A table of multiple values was supplied where a single value was expected". Do you know why this might be or if this is the wrong espression, how you would have done it?

Fowmy
Super User
Super User

@seanrpeters 

You need to have the codes of the Table1 in Table2 as well, then, create a calculated column in Table 1 using  the LOOKUPVALUE function  (LOOKUPVALUE function (DAX) - DAX | Microsoft Learn . This way you will be able to use the new column on the X Axis.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.