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 Everyone,
I have a column with the click flow of a user on a specific day:
BUT, When activities repeat themselves, it becomes impossible to visualise or group the data. I would like to replace repetitive strings (activities) with one single string:
What I have | What I want |
ClickFlowColumn | ClickFlowColumn |
click , click, preview, insert, insert, insert | click, preview, insert |
click, search, search, search, preview | click, search, preview |
Dax only please, because this is a calculated column.
Some help would be much appreciated!
Solved! Go to Solution.
@Anonymous
What do you change your formula like this?
ClickFlowColumn =
CALCULATE (
CONCATENATEX (
VALUES ( ActivitiesTable[Activity Type] ),
ActivitiesTable[Activity Type],
", "
),
ALLEXCEPT ( ActivitiesTable, ActivitiesTable[UserId], ActivitiesTable[Date] )
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Proud to be a Super User!
@Anonymous
What do you change your formula like this?
ClickFlowColumn =
CALCULATE (
CONCATENATEX (
VALUES ( ActivitiesTable[Activity Type] ),
ActivitiesTable[Activity Type],
", "
),
ALLEXCEPT ( ActivitiesTable, ActivitiesTable[UserId], ActivitiesTable[Date] )
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous , three functions in power query should to it
Text.Split
https://docs.microsoft.com/en-us/powerquery-m/text-split
List.Distinct
https://docs.microsoft.com/en-us/powerquery-m/list-distinct
Text.Combine
https://docs.microsoft.com/en-us/powerquery-m/text-combine
@amitchandak thank you, but I'm working with calculated columns, so unfortunately Power Query won't solve my problem.
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 |
---|---|
106 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
107 | |
105 | |
87 | |
61 |