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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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