Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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! |
|
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
87 | |
84 | |
66 | |
49 |
User | Count |
---|---|
131 | |
110 | |
96 | |
70 | |
67 |