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 there!
I would like to transform table A to table B - DAX or Power Query, no specific preferences!
Table A | ||
ChangedDate | ID | NewStatus |
1-Jan-20 | 1 | Trial |
3-Apr-20 | 1 | Subscribed |
2-Jul-20 | 1 | Suspended |
4-Feb-20 | 2 | Free |
7-May-20 | 3 | Trial |
to
Table B | |
ID | Journey |
1 | Trial, Subscribed, Suspended |
2 | Free, Trial |
Thank you in advance 🙂
Solved! Go to Solution.
@Anonymous , try concatenatex
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
new measure
Journey = concatenatex(Table,Table[NewStatus])
@Anonymous , try concatenatex
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
new measure
Journey = concatenatex(Table,Table[NewStatus])
You can use powerquery to achieve this:
Group by ID
Select "all rows"
Add a column:
Table.AddColumn(#"Grouped Rows", "Custom", each Table.Column([Grouped], "NewStatus"))
Click expand on the new column, and select extract values
select comma
That's it, let me know if you need more help!
@Anonymous For some reason I end up with the correct answer, BUT all for the same ID... I think I'll go with concatenateX this time. Thank you!
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 |
---|---|
112 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |