Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I have a column which can have multiple users; it looks like:
Column1
Row 1: UserA
Row 2: UserB
Row 3: UserB, UserC, UserG, UserZ
Row 4: User D,
Row 5: UserA, UserD, UserG
Row 6: UserD, UserF
As we see, UserD appeared in the column 3 times, UserA appeared 2 times etc. How to pull out every user from the column to make a visual which says how many times each user appeared in the column?
Thank you for your time!
Regards,
Wojciech
Solved! Go to Solution.
Hello @pal95 ,
You will need to split your column into multiple columns in the query editor as shown in this blog:
https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/
You can then count the occurrences of a string in multiple columns that reference the following existing thread:
https://community.powerbi.com/t5/Desktop/Count-instances-of-string-in-multiple-columns/td-p/239302
Thank you
Pragati
in the pq, split column
then group by
Proud to be a Super User!
Hi @pal95,
You can try to use following calculate table formulae to analysis raw table and generated the summarize user tables based on each item and their count:
Summary =
VAR merge =
SUBSTITUTE (
CONCATENATEX ( ALL ( 'Table'[Column1] ), [Column1], "," ),
" ",
""
)
VAR _path =
SUBSTITUTE ( merge, ",", "|" )
VAR list =
ADDCOLUMNS (
GENERATESERIES ( 1, PATHLENGTH ( _path ), 1 ),
"Users", PATHITEM ( _path, [Value] )
)
RETURN
FILTER (
GROUPBY ( list, [Users], "Count", COUNTX ( CURRENTGROUP (), [Users] ) ),
[Users] <> BLANK ()
)
Regards,
Xiaoxin Sheng
in the pq, split column
then group by
Proud to be a Super User!
Hello @pal95 ,
You will need to split your column into multiple columns in the query editor as shown in this blog:
https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/
You can then count the occurrences of a string in multiple columns that reference the following existing thread:
https://community.powerbi.com/t5/Desktop/Count-instances-of-string-in-multiple-columns/td-p/239302
Thank you
Pragati
@pal95 , see split by row/column in power Query.edit query can help
https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
68 | |
53 | |
39 | |
33 |
User | Count |
---|---|
70 | |
63 | |
57 | |
49 | |
46 |