Forum Discussion
Encode a Text field
- 8 years ago
You can create a lookup-table in the query editor where you do the things that you tried to achieve in DAX:
- reference your original table and select just the NHI-column
- remove duplicates
- add index column
That's your lookup-table now. Create a NEW query (!) where you reference your original table, merge with the new lookup-table on NHI, expand the index (your new key) and remove the NHI-column. Disable load to datamodel for your original table.
You can create a lookup-table in the query editor where you do the things that you tried to achieve in DAX:
- reference your original table and select just the NHI-column
- remove duplicates
- add index column
That's your lookup-table now. Create a NEW query (!) where you reference your original table, merge with the new lookup-table on NHI, expand the index (your new key) and remove the NHI-column. Disable load to datamodel for your original table.