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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.