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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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])

 

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

pranit828
Community Champion
Community Champion

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.





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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