Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Power BI community
I would like to ask for your help.
I have a file that gives me the last activity of each users, on several services (5 services). I would like to create a column that gives me the last activity among all the services. For example
User Last activity Service 1 Last activity Service 2 Last activity service x Global last activity
User A 13/07/2020 09/07/2020 10/07/2020 13/07/2020
User B 05/03/2020 10/04/2020 20/05/2020 20/05/2020
Is there a function that allows to do that ?
Thanks a lot !
Laura
Solved! Go to Solution.
Hi @Anonymous ,
If you wanted to push this work away from the data model, then you would use the List.Max() function in Power Query.
This gives me the following output:
Pete
Proud to be a Datanaut!
Hi @Anonymous ,
You can use Power Query to handle it more dynamically:
let _user = [User] in
List.Max(Table.Transpose(Table.RemoveColumns(Table.SelectRows(#"Changed Type", each [User] = _user), "User"))[Column1])
Just replace the bold part with your last step name.
Hi @Anonymous ,
If you wanted to push this work away from the data model, then you would use the List.Max() function in Power Query.
This gives me the following output:
Pete
Proud to be a Datanaut!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 66 | |
| 31 | |
| 28 | |
| 24 |