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 moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
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! |
|
User | Count |
---|---|
89 | |
88 | |
84 | |
81 | |
49 |
User | Count |
---|---|
150 | |
142 | |
112 | |
73 | |
55 |