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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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