Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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 FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
92 | |
75 | |
65 | |
49 | |
37 |
User | Count |
---|---|
114 | |
89 | |
80 | |
60 | |
40 |