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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
iorellano
New Member

Creating a punctuality report

Hi!
I'm working on a reporting tool to calculate the punctuality percentage of a team. 
I'm having issues running the data and finding the right tool, here's what we are working with. 

Log activity: Data that explains every activity for an user

First activity: Min value from log activity

Target clock in: Table explaining clock in times per user. 

The issues i'm running into are: 

* Time data isn't calculated as a value, and it's only read as "count" and "distinct count"

* First activity values are not inputed when using measures and quick measures, it's simply non selectable. 

Thanks for the help!

3 REPLIES 3
v-linyulu-msft
Community Support
Community Support

Thanks for the reply from@rajendraongole1 ,please allow me to provide another insight:

HI,@iorellano 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1719220989114.png

2. Below are the measure I've created for your needs:

Measure = 
VAR employ1=CALCULATE(DISTINCTCOUNT('punctuality'[user]),FILTER(ALLSELECTED('punctuality'),'punctuality'[activity id]=MAX('punctuality'[activity id])&&'punctuality'[time]<TIME(9,0,0)))
VAR employ2=CALCULATE(DISTINCTCOUNT(punctuality[user]),FILTER(ALLSELECTED(punctuality),'punctuality'[activity id]=MAX('punctuality'[activity id])))
RETURN employ1/employ2

3.Modify the output format:

vlinyulumsft_1-1719221038295.png

4.Here's my final result, which I hope meets your requirements.

vlinyulumsft_2-1719221057025.png

Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

 

 

 

Punctuality Pbix 

Good afternoon, and thank you for your interest. The following a simplified version of the data, most important aspects for the task are the first activity metrics and the schedule table. 

rajendraongole1
Super User
Super User

Hi @iorellano - can you please provide some sample data to look over ?

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors