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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
jorge_mu
New Member

Get users' check-in and check-out time

Hello

I have a table in excel that records the input and output of users.

A user can enter and exit once or many times during the day.

As I can show: User, date, first time of entry and last departure time; as shown in the attached image.

Screen Shot 2020-09-07 at 18.54.10.png

Thank you

Jorge.

1 ACCEPTED SOLUTION

Hello

You can download my PBI file from here.

I hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@jorge_mu , Create a nee table like. Based on Initial Screenshot. Change the value as per need

Summarize(Table,[USUSURIO],[FECHA], "ENTRAR" ,Minx([ESTADO] = "ENTRAR",[HORA] ), "SUAR" ,Maxx([ESTADO] = "SUAR",[HORA] ) )

 

 

 

Or column in the Same Table

Minx(filter(Table, [USUSURIO] =earlier([USUSURIO]) && [FECHA] earlier([FECHA]) && [ESTADO] = "ESTADO"),[HORA])
Minx(filter(Table, [USUSURIO] =earlier([USUSURIO]) && [FECHA] earlier([FECHA]) && [ESTADO] = "SUAR"),[HORA])

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Ashish_Mathur
Super User
Super User

Hi,

Share the tables in a format that can be pasted in MS Excel.  Also, could you fill the cells in English language?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

DAIRY RECORD

DATEHOURESTATUSUSER
9/6/2019:00LOGOUTLUIS
9/6/2007:59LOGINLUIS
9/6/2015:45LOGOUTCARMEN
9/6/2010:00LOGINCARMEN
9/6/2017:00LOGOUTJOSE
9/6/2013:30LOGINJOSE
9/6/2012:00LOGOUTJOSE
9/6/2008:01LOGINJOSE
9/5/2017:50LOGOUTLUIS
9/5/2014:00LOGINLUIS
9/5/2013:00LOGOUTLUIS
9/5/2010:10LOGINLUIS
9/5/2009:40LOGOUTLUIS
9/5/2007:50LOGINLUIS
9/5/2018:01LOGOUTJOSE
9/5/2002:30LOGINJOSE
9/5/2011:30LOGOUTJOSE
9/5/2007:20LOGINJOSE
9/5/2017:00LOGOUTCARMEN
9/5/2007:30LOGIN

CARMEN

 

SUMMARY 

USERDATELOGINLOGOUT
LUIS9/6/2007:5919:00
CARMEN9/6/2010:0015:45
JOSE9/6/2008:0117:00
LUIS9/5/2007:5017:50
JOSE9/5/2007:2018:01
CARMEN9/5/2007:3017:00

Hello

You can download my PBI file from here.

I hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello

The measure Logout is like this:

Logout = CALCULATE(MAX... because i need to show the max logout time.

Thank u

Best regards,

Jorge

Anonymous
Not applicable

HI @jorge_mu 

 

Use the same data in matrix chart and use Min and Max for the time adding the "Hora" column twoce in the chart.

When you add the "Hora" column for the first tine there is a little symbol next to the Hora, click that and select Min.

Now add he "Hora" column again in the chart and select max from the same little symbol.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors