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
1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Yrstruly2021 ,

 

Number of team members who have not used a PTO in the last 30, 60, 90 days:

Didn't find the total number in the sample data.

Number of team members who used more than 3 PTO in the last 90 days:

 

Measure = 
var _count = CALCULATE(COUNT('Sheet1 (2)'[LeaveTypeName]),FILTER(ALLEXCEPT('Sheet1 (2)','Sheet1 (2)'[Name]),'Sheet1 (2)'[LeaveStatus]="Approved"&&'Sheet1 (2)'[DateFrom]>=TODAY()-90))
return
CALCULATE(DISTINCTCOUNT('Sheet1 (2)'[Name]),FILTER('Sheet1 (2)',_count>3))

 

How many PTOs were cancelled:

 

cancelled = CALCULATE(COUNT('Sheet1 (2)'[LeaveTypeName]),FILTER(ALL('Sheet1 (2)'),'Sheet1 (2)'[LeaveStatus]="Cancelled by User"&&'Sheet1 (2)'[DateFrom]>=TODAY()-90))

 

How many were declined:

Rejected = CALCULATE(COUNT('Sheet1 (2)'[LeaveTypeName]),FILTER(ALL('Sheet1 (2)'),'Sheet1 (2)'[LeaveStatus]="Rejected"&&'Sheet1 (2)'[DateFrom]>=TODAY()-90))

How many were not actioned on:

Pending To Immediate Supervisor = CALCULATE(COUNT('Sheet1 (2)'[LeaveTypeName]),FILTER(ALL('Sheet1 (2)'),'Sheet1 (2)'[LeaveStatus]="Pending To Immediate Supervisor"&&'Sheet1 (2)'[DateFrom]>=TODAY()-90))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

1 REPLY 1
v-jayw-msft
Community Support
Community Support

Hi @Yrstruly2021 ,

 

Number of team members who have not used a PTO in the last 30, 60, 90 days:

Didn't find the total number in the sample data.

Number of team members who used more than 3 PTO in the last 90 days:

 

Measure = 
var _count = CALCULATE(COUNT('Sheet1 (2)'[LeaveTypeName]),FILTER(ALLEXCEPT('Sheet1 (2)','Sheet1 (2)'[Name]),'Sheet1 (2)'[LeaveStatus]="Approved"&&'Sheet1 (2)'[DateFrom]>=TODAY()-90))
return
CALCULATE(DISTINCTCOUNT('Sheet1 (2)'[Name]),FILTER('Sheet1 (2)',_count>3))

 

How many PTOs were cancelled:

 

cancelled = CALCULATE(COUNT('Sheet1 (2)'[LeaveTypeName]),FILTER(ALL('Sheet1 (2)'),'Sheet1 (2)'[LeaveStatus]="Cancelled by User"&&'Sheet1 (2)'[DateFrom]>=TODAY()-90))

 

How many were declined:

Rejected = CALCULATE(COUNT('Sheet1 (2)'[LeaveTypeName]),FILTER(ALL('Sheet1 (2)'),'Sheet1 (2)'[LeaveStatus]="Rejected"&&'Sheet1 (2)'[DateFrom]>=TODAY()-90))

How many were not actioned on:

Pending To Immediate Supervisor = CALCULATE(COUNT('Sheet1 (2)'[LeaveTypeName]),FILTER(ALL('Sheet1 (2)'),'Sheet1 (2)'[LeaveStatus]="Pending To Immediate Supervisor"&&'Sheet1 (2)'[DateFrom]>=TODAY()-90))

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

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.

Top Solution Authors