Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 9 | |
| 7 | |
| 6 |
| User | Count |
|---|---|
| 26 | |
| 22 | |
| 19 | |
| 17 | |
| 10 |