Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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 ID | Submit Date | Submit Status | Required Date | Time Performance | Employee |
| 505924 | 3/5/2021 | A | 7/15/2021 | On Time | JJ |
| 505929 | 2/4/2021 | A | 9/23/2020 | 91-180 Days Late | JJ |
| 487955 | 1/26/2021 | A | 1/29/2021 | On Time | FG |
| 487958 | 2/24/2021 | A | 12/18/2020 | 31-90 Days Late | FG |
| 488323 | 2/25/2021 | A | Missing LRD | EP | |
| 488099 | 1/28/2021 | A | 12/28/2020 | 31-90 Days Late | DV |
| 481229 | 1/27/2021 | A | 3/10/2021 | On Time | DV |
| 481229 | 1/26/2021 | A | 1/22/2021 | 1-30 Days Late | DV |
| 506405 | 1/29/2021 | A | 8/5/2021 | On Time | MP |
| 506405 | 3/1/2021 | A | 2/14/2021 | 1-30 Days Late | MP |
| 506405 | 3/1/2021 | A | Missing LRD | DA | |
| 506406 | 2/27/2021 | A | 2/25/2021 | 1-30 Days Late | MP |
| 506433 | 3/11/2021 | A | 2/1/2021 | 31-90 Days Late | MP |
| 487880 | 3/4/2021 | A | 10/30/2018 | Over 180 Days Late | SV |
Solved! Go to Solution.
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
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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |