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

Next 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

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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