Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi @chock974 ,
I create a table as you mentioned.
Next I create a calculated column and a measure.
Concatenated = 'Table'[ACTE] & " " & 'Table'[COEFF]
Measure =
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Concatenated] )
)
Then I create two new tables and it will give you what you want.
GroupedTable =
SUMMARIZE (
'Table',
'Table'[ITEM1],
"ConcatenatedActs", CONCATENATEX ( 'Table', 'Table'[Concatenated], ", " )
)
Top5Concatenations =
TOPN (
5,
SUMMARIZE ( 'Table', 'Table'[Concatenated], "Count", 'Table'[Measure] ),
[Count], DESC
)
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @chock974 ,
I create a table as you mentioned.
Next I create a calculated column and a measure.
Concatenated = 'Table'[ACTE] & " " & 'Table'[COEFF]
Measure =
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Concatenated] )
)
Then I create two new tables and it will give you what you want.
GroupedTable =
SUMMARIZE (
'Table',
'Table'[ITEM1],
"ConcatenatedActs", CONCATENATEX ( 'Table', 'Table'[Concatenated], ", " )
)
Top5Concatenations =
TOPN (
5,
SUMMARIZE ( 'Table', 'Table'[Concatenated], "Count", 'Table'[Measure] ),
[Count], DESC
)
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Almost a good solution
i try our idea with table and i have got the solution
and i try to do the same thing only in measure and the result is wrong.
it's my pbix to upload here : TOPN and CONCAT BY MEASURE
ok
https://drive.google.com/file/d/1qkLv8KNNhJyrGZhoQNvBOLYQ7RF44DFA/view?usp=drive_link
hope it's correct!!!
@chock974 , Can you share data in a format that can be copied instead of picture
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |