Forum Discussion
Replace codes with full text based on table
- Anonymous3 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
Hello ReadTheIron ,
First of all, go to Power Query and merge both tables with the event table and get the description columns only from both tables.
Refer to this link for instructions https://learn.microsoft.com/en-us/power-query/merge-queries-overview
then you merge these columns to show in one column and you can use it.
refer to this link https://support.microsoft.com/en-us/office/merge-columns-power-query-80ec9e1e-1eb6-4048-b500-d5d42d9f0a8d
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
- ReadTheIron3 years agoHelper III
EventTable doesn't appear in PowerQuery; it's a live connection stored with DirectQuery.
- Idrissshatila3 years agoSuper User
Then merge only the other two tables and then merge the problem description columns and you can use it since there's a relation between them and event table.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
- ReadTheIron3 years agoHelper III
Sorry, I'm having a bit of trouble understanding. I only have two tables, EventTable (which is a live connection and which I can't access in PowerQuery) and ProblemKey, which is a simple Excel import and which I can access in PowerQuery. I can create calculated columns for EventTable, but I don't know how to access it to merge.