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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
rajasekar_o
Helper V
Helper V

Attendance in time out time

hi team i need help,
i have the data , need  to calculate in time and out time 

rajasekar_o_0-1705908147322.png

I need the output 

rajasekar_o_1-1705908221017.png

i try but not able to get output 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @rajasekar_o 

You can create a calculated column in table

date = [datetime].[Date]

Then create the following measures

in time = CALCULATE(MIN('Table'[datetime]),'Table'[type]=0)
out time = CALCULATE(MAX('Table'[datetime]),'Table'[type]=1)

Then put them to the visual filter.

Output

vxinruzhumsft_0-1705996351770.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @rajasekar_o 

You can create a calculated column in table

date = [datetime].[Date]

Then create the following measures

in time = CALCULATE(MIN('Table'[datetime]),'Table'[type]=0)
out time = CALCULATE(MAX('Table'[datetime]),'Table'[type]=1)

Then put them to the visual filter.

Output

vxinruzhumsft_0-1705996351770.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Daniel29195
Super User
Super User

Hello @rajasekar_o

 

you can achieve this output with power query .

follow these steps : 

i took example this sample data : 

Daniel29195_0-1705909254333.png

 

 

step 1 :  select the column you want to transform it into columns. 

step2 :  go to transform --> pivot

 

Daniel29195_1-1705909301825.png

 

step3 : choose for value column, the values that you want to be under each pivoted column

and aggregate you can set to dont aggregate 

Daniel29195_2-1705909320831.png

 

 

final result : 

Daniel29195_3-1705909369787.png

 

 

 

 

 

If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. Dont forget to hit that thumbs up button 🫡👍

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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