Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
In a matrix table, I want to display every distinct value of a string column.
How can I do IT ?
(I'm looking for some sort of concatenate agg function but it doesn't seems to exist (CONCATENATE function only works for 2 values, not n values).
Thanks
Regards
Solved! Go to Solution.
HI,
You have to use concatenatex. If you want some help, give me a pic of your table
Hi @Bebs ,
@JamesFR06 suggested that you provide some data but did not receive a response so I created a sample data to address your question:
Sample data:
1.Add a column.
Distinct ID =
VAR _1 =
CONCATENATEX ( DISTINCT ( 'Table'[ID] ), 'Table'[ID], ", " )
VAR _2 =
CONCATENATEX ( DISTINCT ( 'Table'[Name] ), 'Table'[Name], ", " )
VAR _3 =
CONCATENATEX ( DISTINCT ( 'Table'[Category] ), 'Table'[Category], ", " )
RETURN
_1 & " | " & _2 & " | " & _3
Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot, it's perfect 👍
Hi @Bebs ,
@JamesFR06 suggested that you provide some data but did not receive a response so I created a sample data to address your question:
Sample data:
1.Add a column.
Distinct ID =
VAR _1 =
CONCATENATEX ( DISTINCT ( 'Table'[ID] ), 'Table'[ID], ", " )
VAR _2 =
CONCATENATEX ( DISTINCT ( 'Table'[Name] ), 'Table'[Name], ", " )
VAR _3 =
CONCATENATEX ( DISTINCT ( 'Table'[Category] ), 'Table'[Category], ", " )
RETURN
_1 & " | " & _2 & " | " & _3
Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HI,
You have to use concatenatex. If you want some help, give me a pic of your table
User | Count |
---|---|
13 | |
8 | |
8 | |
7 | |
5 |
User | Count |
---|---|
21 | |
15 | |
15 | |
10 | |
7 |