Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hoppalong
New Member

References previous value based on user ID

I have the following sample data which has been pulled from application logs. 

The login/logout events have a corresponding UserID & Username. When the application disconnects the user it only provides the Usernum and not their actual username making it difficult to identify who has been repeatedly disconnected. 

 

I've joined my login/logout/disconnected events into one table and would like to somehow replace those null values within the AD_User by referencing the previous usernum id.

 

 

 

hoppalong_1-1729065341908.png

 

1 ACCEPTED SOLUTION
Omid_Motamedise
Super User
Super User

use this code

 

= Table.Group(Source, {"Username"}, {{"Count", each Table.FillDown(_,{"AD_User"})}})

If my answer helped solve your issue, please consider marking it as the accepted solution.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @hoppalong ,

I tested Omid_Motamedise's reply and it works well!
If Omid_Motamedise's reply helps you, please remember to accept the reply as solution to help the other members find it more quickly. Thank you!

Best Regards,
Dino Tao

Omid_Motamedise
Super User
Super User

use this code

 

= Table.Group(Source, {"Username"}, {{"Count", each Table.FillDown(_,{"AD_User"})}})

If my answer helped solve your issue, please consider marking it as the accepted solution.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors