Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Translation Table (All rows are unique).
The numbers assigned do not have a strong logic. A look up would be required.
Location New_Location
| World | 02 World |
| Argentina | 07 Argentina |
Data (Many duplicates)
Location Value
| World | 5 |
| World | 6 |
| Mexico | 18 |
I would like to replace the Data[Location] with Translation[New_Location]. If there is no entry in the translation table the orignal entry is acceptable. Within the model a many to one relationship between Data[Location] and Translation[Location] exisits. There is too many values to make replace values feature practical and the translation table is subject to changes.
In Excel, I would have created a VLOOKUP helper column. Then copy and paste-special-values to overwrite the orignal location Data[Location] entries. I am strugling through these fourms and google to find an elgant solution. Thank you very much in advance for your time!
Solved! Go to Solution.
Hi @OKgo
Try this calculated column in DataTable
New Location =
VAR RESULT =
CALCULATE ( FIRSTNONBLANK ( TranslationTable[New_Location], 1 ) )
RETURN
IF ( ISBLANK ( RESULT ), 'DataTable'[Location], result )
Hi @OKgo
Try this calculated column in DataTable
New Location =
VAR RESULT =
CALCULATE ( FIRSTNONBLANK ( TranslationTable[New_Location], 1 ) )
RETURN
IF ( ISBLANK ( RESULT ), 'DataTable'[Location], result )
Hi Zubair_Muhammad. Thank you so much for replying. Am I using the correct window to use the code? The show error feature highlights the word RESULT.
Thank you so much! It works in the report view.
I was hoping to be able to see the column within edit queries to check the output but maybe that is not possible.