Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Trying to pull data from Salesforce: Login History Object
I want to pull the earliest login time for each day, per UserID. The attachement includes the actual data and you can see there are multiple datetime entries per UserID. I have limited this to three unique USERID and two weeks of login.
Any help or guidance would be greatly appreciated.
| UserId | LoginTime |
| 0050B000006kzcIQAQ | 3/2/2025 23:03 |
| 0050B000006kzcIQAQ | 3/3/2025 14:52 |
| 0050B000006kzcIQAQ | 3/3/2025 15:06 |
| 0050B000006kzcIQAQ | 3/3/2025 15:06 |
| 0050B000006kzcIQAQ | 3/3/2025 15:08 |
| 0050B000006kzcIQAQ | 3/4/2025 1:40 |
| 0050B000006kzcIQAQ | 3/4/2025 14:36 |
| 0050B000006kzcIQAQ | 3/4/2025 14:37 |
| 0050B000006kzcIQAQ | 3/4/2025 14:37 |
| 0050B000006kzcIQAQ | 3/4/2025 14:37 |
| 0050B000006kzcIQAQ | 3/4/2025 14:37 |
| 0050B000006kzcIQAQ | 3/4/2025 18:46 |
| 0050B000006kzcIQAQ | 3/4/2025 18:46 |
| 0050B000006kzcIQAQ | 3/6/2025 16:14 |
| 0050B000006kzcIQAQ | 3/6/2025 16:15 |
| 0050B000006naKlQAI | 3/3/2025 19:05 |
| 0050B000006naKlQAI | 3/3/2025 19:36 |
| 0050B000006naKlQAI | 3/3/2025 19:36 |
| 0050B000006naKlQAI | 3/3/2025 21:59 |
| 0050B000006naKlQAI | 3/3/2025 22:05 |
| 0050B000006naKlQAI | 3/3/2025 22:17 |
| 0050B000006naKlQAI | 3/3/2025 22:34 |
| 0050B000006naKlQAI | 3/4/2025 0:11 |
| 0050B000006naKlQAI | 3/4/2025 0:32 |
| 0050B000006naKlQAI | 3/4/2025 2:54 |
| 0050B000006naKlQAI | 3/4/2025 14:00 |
| 0050B000006naKlQAI | 3/4/2025 14:13 |
Solved! Go to Solution.
Duplicate datetimes
Set one to date and the other to time
Group by userID and date, take min time
Combine date and time
Hi @OldDogNewTrick
In addition to @Deku Please find the attached PBIX file which meets your requirement.
If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.
Thank you both for the help! I appreciate the fast response.
Hi @OldDogNewTrick
In addition to @Deku Please find the attached PBIX file which meets your requirement.
If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.
Duplicate datetimes
Set one to date and the other to time
Group by userID and date, take min time
Combine date and time
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 9 | |
| 7 | |
| 6 |