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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Power BI Chart for Project Status

Hi All I need a critical help. I tried alot to create a chart for Project status count based no of activities .I have a dummy data and output expected as below

Project IDTask NameActivity StatusPerson AssignedPlanned StartPlanned Finish%Complete
1DesignCompleteMike1-Sep2-Sep100%
1TestCompleteMike2-Sep3-Sep100%
1DevlopCompleteBrent3-Sep4-Sep100%
2CallCompleteBrent5-Sep6-Sep100%
2DriveIn ProgressMike7-Sep19-Sep30%
3WorkingIn ProgressMike7-Sep19-Sep10%
3TestingNot StartedBrent19-Sep20-Sep0%
4SwitchDeferedBrent3-Sep3-Sep0%
5FileNot StartedBrent21-Sep23-Sep0%
5TryCompleteBrent3-Sep3-Sep100%

 

Output as

 

Project IDProject Status
1Complete
2In Progress
3In Progress
4Deferred
5In Progress

sur2307_0-1663083522865.png

 

7 REPLIES 7
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods.

Column:

Project Status = 
Var _MaxComplete=CALCULATE(MAX('Table'[%Complete]),ALLEXCEPT('Table','Table'[Project ID]))
Var _MinComplete=CALCULATE(MIN('Table'[%Complete]),ALLEXCEPT('Table','Table'[Project ID]))
VAR _ResultComplete=IF(_MaxComplete=1,_MinComplete,IF(_MinComplete=0,_MaxComplete))
return
CALCULATE (
    MAX ( 'Table'[Activity Status] ),
    FILTER (
        ALL ( 'Table' ),
        [%Complete] = _ResultComplete
            && [Project ID] = EARLIER( 'Table'[Project ID] )
    )
)

Result:

vzhangti_0-1663145842412.png

vzhangti_1-1663145866301.png

vzhangti_3-1663145911819.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

Anonymous
Not applicable

Thanks alot for trying to help. But I have added two more tasks for Project ID5 as below, Where there are  2 Not Started and 1 complete, so still Project 5 to be considered in  Progress state. But in the table its reflecting as Not Started.

sur2307_0-1663152175279.png

 

Anonymous
Not applicable

@DataInsights @amitchandak  Please help..am struggling with this requirement. A solution can solve 80% of my worries.

Greg_Deckler
Community Champion
Community Champion

@Anonymous Seems like:

Project Status Measure = 
  VAR __LastDate = MAX('Table'[AssignedPlanned])
  VAR __Status = MAXX(FILTER('Table',[Assigned Planned] = __LastDate),[Activity Status])
RETURN
  __Status

This will get you your table. For the graphic, you will have to use a disconnected table of your status values. In general, to use a measure in that way, you need to use the Disconnected Table Trick as this article demonstrates: https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick/ba-p/279563



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

This is based on Planned Start or Planned Finish? Can we set around the logic with %Complete.

amitchandak
Super User
Super User

@Anonymous , refer if my blog on the same can help

 

https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee884e

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Does this help to create the chart?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors