Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I created dashbord table and I would like to combine the column1 with commas and SUM the column2 based on column3. Is it possible?
I have a table like this,
Column1,Column2,Column3
A | 5 | XX |
B | 10 | XX |
C | 12 | XX |
D | 3 | YY |
F | 8 | YY |
G | 15 | ZZ |
Y | 4 | SS |
H | 1 | BB |
Final result should be like below
Column1,Column2,Column3
A,B,C | 27 (5+10+12) | XX |
D,F | 11(3+8) | YY |
G | 15 | ZZ |
Y | 4 | SS |
H | 1 | BB |
Thanks in advance.
Solved! Go to Solution.
Create a meausre like this:
Measure = CONCATENATEX(VALUES('Table'[Column1]),[Column1],",")
Create a table visualization with Column 3, Column 2 with default SUM and this measure.
Hi @Progressive,
Alternatively, you could new a calculated table with this formula:
New Table = SUMMARIZE ( Table, Table[Column3], "Column1", CONCATENATEX ( Table, Table[Column1], "," ), "Column2", SUM ( Table[Column2] ) )
Best regards,
Yuliana Gu
Hi @v-yulgu-msft,
I tried your formula and it works with one downside. Now, I have duplicates in Column1. Like A,B,C,A,A,A,A
Is there anyway to remove dubs in Column1. Something like DISTINCT SUMMARIZE 🙂
Create a meausre like this:
Measure = CONCATENATEX(VALUES('Table'[Column1]),[Column1],",")
Create a table visualization with Column 3, Column 2 with default SUM and this measure.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |