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
Tome_05
Helper III
Helper III

How to conditionally combine logs for the same user

Thank you as always.

I have a question about the BI Power Query editor, so please let me know.

As shown in the attached image, there are two logs for the same user, and I would like to combine them into one log.

The conditions are:

If the first registration date and time is "Null", I want to display the first registration date and time that is not "Null".

For the latest access date and time, I want to display the latest access date and time that is "Null".

If the event at the time of first registration is "Null", I want to display the event at the time of first registration that is not "Null".

For the event at the time of last access, I want to display the event at the time of last access that is "Null".

For the number of participations, I want to display the total number of the two.

Please tell me how to do this.
Thank you in advance.スクリーンショット 2024-09-19 144639.png

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Tome_05 

pls see if this is what you want

11.PNG

12.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
ryan_mayu
Super User
Super User

@Tome_05 

pls see if this is what you want

11.PNG

12.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.