Forum Discussion
Power BI/Query: How to Show Multi-Value Column as Single Row and Filter on Individual Items?
Hi everyone,
I’m pulling data from a Microsoft List into Power BI. One of the columns contains multiple values (like a collection of tags or items), and Power BI is creating a separate row for each of those values—so I end up with a lot of duplicate rows. From MS Lists:
What I’ve tried:
1. Extract to new column with line breaks:
In Power Query, I extracted the values to a new column and separated them using “Replace Values” to put each value on a new line. This keeps one row per person, but on the dashboard, Power BI concatenates all the values together, so I can’t filter on individual items. Here’s how it looks in the dashboard, slicer, etc:
2. Extract to new rows:
I also tried expanding the list into new rows in Power Query. This lets me filter by individual tags, but then each person appears multiple times—once for each value in the multi-value column—which throws off totals and counts.
What I need:
- Each person (record) should appear only once in the dashboard.
- I want to be able to filter on individual tags/items from the multi-value column.
- Ideally, the multi-value column is shown as a semicolon-delimited string (e.g., “Item A; Item B; Item C”) but still filterable by individual tags.
Has anyone solved this? Is there a way to transform or model the data so I can both keep unique rows and filter on individual items?
Thanks in advance!
Hi, I received a solution from an external colleague to this Fabric Community.
9 Replies
- lbendlinSuper User
Power BI is creating a separate row for each of those values—so I end up with a lot of duplicate rowsHow is that an issue?
Is there a way to transform or model the data so I can both keep unique rows and filter on individual items?The Power BI visuals are taking care of that for you - they automatically aggregate.
- dBlackstockFrequent Visitor
That is an issue because it is skewing my total entries. The example that I posted shows that three incidents were submitted, but that is inaccurate. One incident was submitted with three different incident types listed. I don't want duplicate rows in my dashboard table. I want one row per incident, with the incident types all listed in the single row. Does that help to clarify? Thanks!
- lbendlinSuper User
Instead of Count use Count (Distinct) - that will give you the correct number of incidents and gives you the flexibility to report on the incident type independently.
- dBlackstockFrequent Visitor
Hi, I received a solution from an external colleague to this Fabric Community.
- v-achippaCommunity Support
Hi dBlackstock,
Thank you for confirming that your issue is resolved now. I request you if possible please share the solution here and mark it as accept it as a solution so that other community members will find it more easily. If not kindly accept the above post as solution.
Thanks and regards,
Anjan Kumar Chippa