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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Oana
Advocate I
Advocate I

Help with DAX

I am just starting to learn DAX and need help to calculate On Time Delivery %  excluding a specific category: in Time Peformance I want to exclude "Missing LRD".

The table shows: projects listed by an unique number, a Submit date (completion date of the project) and status (A for completed), a Required date (the target date to complete the project), a calculated column Time Peformance (which compares the Submit date and Required date and assigns a category), Employee. I want to calculate On Time Delivery % to show how many projects were completed On Time for each Employee, but exclude the "Missing LRD" category projects, because for that category there is no Required date.         

Project IDSubmit DateSubmit StatusRequired DateTime PerformanceEmployee
5059243/5/2021A7/15/2021On TimeJJ
5059292/4/2021A9/23/202091-180 Days LateJJ
4879551/26/2021A1/29/2021On TimeFG
4879582/24/2021A12/18/202031-90 Days LateFG
4883232/25/2021A Missing LRDEP
4880991/28/2021A12/28/202031-90 Days LateDV
4812291/27/2021A3/10/2021On TimeDV
4812291/26/2021A1/22/20211-30 Days LateDV
5064051/29/2021A8/5/2021On TimeMP
5064053/1/2021A2/14/20211-30 Days LateMP
5064053/1/2021A Missing LRDDA
5064062/27/2021A2/25/20211-30 Days LateMP
5064333/11/2021A2/1/202131-90 Days LateMP
4878803/4/2021A10/30/2018Over 180 Days LateSV
1 ACCEPTED SOLUTION
selimovd
Most Valuable Professional
Most Valuable Professional

Hey @Oana ,

 

try with Calculate:

Project without Missing LRD = CALCULATE( COUNTROWS( myTable ), myTable[Performance] <> "Missing LRD" )

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi

View solution in original post

2 REPLIES 2
selimovd
Most Valuable Professional
Most Valuable Professional

Hey @Oana ,

 

try with Calculate:

Project without Missing LRD = CALCULATE( COUNTROWS( myTable ), myTable[Performance] <> "Missing LRD" )

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi

Hi Denis, this is genius! I used your measure to calculate On Time Delivery excluding sites with Missing LRD. Thank you lots!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors