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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

I need Help for my DAX. If the Cycle time is during The MCO how to calculate the days During MCO

Hi All,
I have 1 impediment to calculate the Days During MCO on my queries.
This is to calculate how many days are there by using start date MCO and End date MCO.
Below is the example of my queries.

 

question.png

 

For your reference below is the output that i wanted including the start date and the end date of the MCO
i include how i do calculate the Cycle time . How can i use queries or using measure to auto populate the Days During MCO for my Data.

 

Example1.png

 

Hope you all can help me.
Best regards 
Thanks

 

 

 Source Table 

 

ItemIncurredResolvedCycle TimeDays During MCO Cycle Time Exclude MCO
A8/29/20219/14/202117  
B8/28/20219/14/202118  
C8/26/20219/14/202120  
D8/25/202110/10/202147  
E8/25/202110/10/202147  
F8/24/202110/10/202148  
G8/23/20219/14/202123  
H8/23/202111/30/202199  
I8/20/202111/16/202189  
J8/20/20219/14/202126  
K8/19/20219/14/202127  
L8/18/20219/14/202128  
M8/18/20219/14/202128  
N8/16/20219/14/202130  
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 

if you have the MCO end date fixed you can simply add new calculated columns 

 

 

Days During MCO =
DATEDIFF ( DATE ( 2021, 9, 2 ), 'Source Table'[Incurred], DAY )

 

 

 

Cycle Time Exclude MCO =
'Source Table'[Cycle Time] - 'Source Table'[Days During MCO]

 

 

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 

if you have the MCO end date fixed you can simply add new calculated columns 

 

 

Days During MCO =
DATEDIFF ( DATE ( 2021, 9, 2 ), 'Source Table'[Incurred], DAY )

 

 

 

Cycle Time Exclude MCO =
'Source Table'[Cycle Time] - 'Source Table'[Days During MCO]

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors