March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
93 | |
91 | |
91 | |
79 | |
49 |
User | Count |
---|---|
160 | |
144 | |
103 | |
72 | |
55 |