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
bcobrien1977
Helper IV
Helper IV

Project Count Over time that adds uncompleted projects to future time periods

Hi,

I am trying to track project progress across 4 stages, (Committed, In Progress, Testing and Done).

 

The tricky part is I want to take the max status each quarter and if it hasn't reached done status, to carry that to the next quarter.

In the example below, project A would carry forward to each quarter because it hasn't achieved done status.

 

The results would look like this.

 

ProjectDateStatus 
A1-SepCommitted 
A1-Octin Progress 
B1-SepCommitted 
B1-Octin Progress 
B1-NovTesting 
B1-DecDone 
    
 Results
Project3rd Quarter4th Quarter1st Quarter
AIn ProgressIn ProgressIn Progress
BCommitted Done 
    

 

My measure looks like this but I can't seem to figure out how to factor in the Done status (essentially carrying the project to each successive quarter).

Flow Distribution Count =
VAR MAXSELECTDATE=max(vwFiscalCalendar[CalendarDate])
RETURN
SUMX('FLOW DISTRIBUTION_FEATURE_EPIC',
VAR createdate='FLOW DISTRIBUTION_FEATURE_EPIC'[CreatedOn]
VAR creatednextdate='FLOW DISTRIBUTION_FEATURE_EPIC'[CreatedOnNext]
VAR laststatus='FLOW DISTRIBUTION_FEATURE_EPIC'[NewString]
RETURN IF(createdate<=MAXSELECTDATE && or(creatednextdate>=MAXSELECTDATE,creatednextdate=Blank()),1,0))

 

I appreciate any help 

5 REPLIES 5
bcobrien1977
Helper IV
Helper IV

Thanks!.  What would happen if I wanted to count the projects that didn't reach done status?

In other words, just count projects by status by quarter, using the same logic.

 

Thanks

Brendan

Hi @bcobrien1977 

Can you provide some sample data or picture?

 

Best Regards!

Yolo Zhu

 

Hi,

Something like this

 

ProjectStatusQuarter 3Quarter 4Quarter 1Quarter 2
ACommitted1   
AIn Progress 111
AAccepted    
ADone    
BCommitted1   
BIn Progress    
BAccepted    
BDone 1  
      
      
      
 Project would pick up max status in quarter and put it in that status. 
 Anything not in Done Status would carry on indefinitely. Project A would remain in the last status until an update is made.  THanks!  
      

Hi, Did you ever have a solution to this? It feels like there should be a way to add an uncompleted project to a project inventory.

Thanks

 

v-xinruzhu-msft
Community Support
Community Support

Hi @bcobrien1977 

You can refer to the following example

Sample data 

vxinruzhumsft_0-1677827854904.png

 

Then create a measure

Measure = var b=FILTER(ALL('Table'),[Project]=MAX([Project])&&[Status]="Done")
var c=MAXX(b,[Quarter])
var d=MAXX(FILTER(ALL('Table'),[Project]=MAX('Table'[Project])),[Date])
var e=MAXX(FILTER(ALL('Table'),[Quarter]=MAX([Quarter])),[Date])
return IF(COUNTROWS(b)>0,IF(MAX('Table'[Quarter])=c,"Done",MAXX(FILTER(ALL('Table'),[Date]=e),[Status])),MAXX(FILTER(ALL('Table'),[Project]=MAX('Table'[Project])&&[Date]=d),[Status]))

And put the measure to the matrix visual

vxinruzhumsft_1-1677827933254.png

 

 

Best Regards!

Yolo Zhu

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

 

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.