Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
88 | |
74 | |
63 | |
48 | |
38 |
User | Count |
---|---|
118 | |
86 | |
80 | |
58 | |
40 |