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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

J0bs on Site 3-6 months, 6-9 months

Hi I am currently trying to create KPIs using measures for jobs that are 0-3 months, 3-6 months etc

 

SmartZ96_0-1711549350721.png

These came from week ending every friday, this spreadsheet is created from a sharepoint list with arrival date and completed date< i am trying to calculate these jobs on site: 0-3 months, 3-6 months I was given the defintion for these KPIs

 

Count of the number of Jobs which have an "actual arrival date" and a "Completed date" of after the end date of the report OR no "Completed date" populated. The arrival date should be between 91-180 days of the end date of the report, I tried the DAX code and had no luck

 

Jobs On Site 6-9 months = COUNTROWS(
        FILTER (
            'Job Tracker',
            (
                'Job Tracker'[Arrival Date] <> BLANK ()
                && (
                    ISBLANK ( 'Job Tracker'[Completed Date] )
                ) && 'Job Tracker'[Job Duration] < 271
            )
        )
    )+0
 
any suggestions would be appreciated thanks
1 ACCEPTED SOLUTION
v-nuoc-msft
Community Support
Community Support

Hi @Anonymous 

 

I made some modifications based on the code you provided.

 

Here's some dummy data

 

“Job Tracker”

vnuocmsft_0-1711592601763.png

 

The modified code is as follows:

 

Jobs On Site 6-9 months = 
COUNTROWS(
    FILTER(
        'Job Tracker', 
        'Job Tracker'[Arrival Date] <> BLANK() 
        && 
        ISBLANK('Job Tracker'[Completed Date]) 
        && 
        'Job Tracker'[Arrival Date] >= TODAY() - 270 
        && 
        'Job Tracker'[Arrival Date] < TODAY() - 180
    )
)

 

Here is the result.

 

vnuocmsft_1-1711592710614.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-nuoc-msft
Community Support
Community Support

Hi @Anonymous 

 

I made some modifications based on the code you provided.

 

Here's some dummy data

 

“Job Tracker”

vnuocmsft_0-1711592601763.png

 

The modified code is as follows:

 

Jobs On Site 6-9 months = 
COUNTROWS(
    FILTER(
        'Job Tracker', 
        'Job Tracker'[Arrival Date] <> BLANK() 
        && 
        ISBLANK('Job Tracker'[Completed Date]) 
        && 
        'Job Tracker'[Arrival Date] >= TODAY() - 270 
        && 
        'Job Tracker'[Arrival Date] < TODAY() - 180
    )
)

 

Here is the result.

 

vnuocmsft_1-1711592710614.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.