Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |