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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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