Forum Discussion
count values from multiple columns
- 3 months ago
Hi JMMSSAU , Before counting, I'd suggest first unpivoting the 6 item columns into a single column ,this makes the count much simpler and cleaner to work with.
In Power Query:
1. Select all 6 item columns (Item 1 through Item 6)
2. Right-click โ Unpivot Columns
3. This gives you a single Value column with all items stacked
4. Remove the Attribute column (which just says Item 1, Item 2 etc.)
5. Filter out any blank/null rows
6. Then group by the Value column and count rowsOnce everything is in one column, a simple **Group By** gives you exactly the Items + Count table you're after โ no complex cross-column logic needed.
Hope that helps!
Thanks!
Natarajan Manivasagan
If you found this helpful, please consider giving it a Kudos and marking it as the accepted solution โ it goes a long way in helping others facing the same issue.๐ Best Solution for Enterprise BI โ 2026 Microsoft Fabric Semantic Link Developer Experience Challenge
๐ Microsoft announcement ยท View the winning notebookFor more Power BI tips and discussions, let's connect on LinkedIn.
Cheers!
That's brilliant thanks.