Forum Discussion
Handling tag data in a table
- 6 years ago
Hi elettra84 ,
You could open query editor and unpivot the tag columns to get an extra column. Then pivot this column to get IDs without aggregation and remove blank tags.
Here is my test file for your reference.
Is there a clear delimiter that separates the tags? If so, you could add a step in Power Query Editor that does a split column by delimiter and expand the advanced options to split into rows rather than columns.
I was thinking about this solution, however in that table I also have metrics that shouldn't be duplicated as it will double/triple count them. What do you suggest?
- AllisonKennedy6 years agoCommunity Champion
elettra84 One option in that case is to split the table into 2 - what I sometimes do in this case is right click on the table query and choose 'reference' to create the additional tables. Keep the Key ID column in both tables, but only keep the Tags in one table and only the other info in the other table. Relate them in the data model and carry on as normal.
Does that make any sense?