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
1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

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

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.