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! Request now

Reply
Anonymous
Not applicable

How to get a percentage of ticket requests opened 10 days or earlier from another date

Hi,

 

I am trying to figure out how to get a percentage of tickets that were created 10 days prior to a new hire start date from a excel data source. 

 

Some new hires meet the ticket submittion of 10 days prior the start date but some don't. I need to create a DAX expression to find the percentage of # of requests created 10 days or earlier.

 

The fields are listed as follows. 

Ticket Number    Created        New Hire Name   Start Date

 

Thanks in advanced!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
Please use 

Percentage 10 Days or Earlier =
VAR TotalTickets =
    COUNTROWS ( TableName )
VAR Tickets10DaysOrEarlier =
    COUNTROWS (
        FILTER (
            TableName,
            DATEDIFF ( TableName[Created], TableName[Start Date], DAY ) >= 10
        )
    )
RETURN
    DIVIDE ( Tickets10DaysOrEarlier, TotalTickets )

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@tamerj1 Thank you! Now I have another question. If I want to show these two metrics for Requests (Request Number) and Tasks (Task Number)- where Requests are not unique values and Taks are unique. How can I show this?

Hi @Anonymous 
Please provide more context and perhaps some sample data along with the expected result so I can assist you further.

tamerj1
Super User
Super User

Hi @Anonymous 
Please use 

Percentage 10 Days or Earlier =
VAR TotalTickets =
    COUNTROWS ( TableName )
VAR Tickets10DaysOrEarlier =
    COUNTROWS (
        FILTER (
            TableName,
            DATEDIFF ( TableName[Created], TableName[Start Date], DAY ) >= 10
        )
    )
RETURN
    DIVIDE ( Tickets10DaysOrEarlier, TotalTickets )

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.