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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kamini
Helper III
Helper III

Building a Table to show Projects that are Ahead, on-Time or Behind schedule

Hi, thanks in advance for your time.

I have to enhance an existing Table in Power BI to show Projects that are Ahead, on-Time or Behind schedule. The existing Table includes the following information,

NameStart dateDue DateFinish dateProject ProgressOn-TimeLateAhead
Project 12/14/20249/14/20249/14/2024100%YesNoNo
Project 29/14/20249/23/2024 90%NoNoYes
Project 303/19/20233/12/202405/19/202320%NoYesNo

For the most part, I have the start date, Finish Date, and Due Dates and Progress but the main request is to obtain some code and/or recommendation to designate a symbol or color using Conditional Formatting on the field. The On-Time, Late, or Ahead can be a part of a single Column as a drop down list. 

 

Thanks for your time. 

1 ACCEPTED SOLUTION
Selva-Salimi
Super User
Super User

Hi @kamini 

 

it is not that much clear for me what your expectation is. but based on my understanding, I think that you need to show the project situation in one column then it can be easy to conditional formatting. I recommend to write another column beside these columns using "if" or "switch" , (if ( your_table [On-time]= "yes'", "On-time" , if ( your_table [late]="yes" , "Late" , if (your_table [ahead] = "yes" , "ahead"))).

 

if this is not what you expect please clarify by an example.

 

If this post helps, then I would appreciate a thumbs up  and mark it as the solution to help the other members find it more quickly.  

 

 

View solution in original post

3 REPLIES 3
Selva-Salimi
Super User
Super User

Hi @kamini 

 

it is not that much clear for me what your expectation is. but based on my understanding, I think that you need to show the project situation in one column then it can be easy to conditional formatting. I recommend to write another column beside these columns using "if" or "switch" , (if ( your_table [On-time]= "yes'", "On-time" , if ( your_table [late]="yes" , "Late" , if (your_table [ahead] = "yes" , "ahead"))).

 

if this is not what you expect please clarify by an example.

 

If this post helps, then I would appreciate a thumbs up  and mark it as the solution to help the other members find it more quickly.  

 

 

Thanks so much and your recommendation was amazing. I'm facing two issues and if you want, I can open a new request. The Green Text showing and the Progress column showing info the left of Axis. 

1) I can't remove the actual title (Green) and just show the color green without the text.

Here is the code that creates the Result Column showing Green text (To remove it somehow). 

Result = SWITCH(True(),[Finish Date] > [Due Date] && 'ITD Projects'[Status]="Completed","Red",[Finish Date] <[Due Date] && 'ITD Projects'[Status]="Completed","Green",[Finish Date] =[Due Date] && 'ITD Projects'[Status]="Completed" ,"Blue")

kamini_3-1727623546561.png

 

2) One Progrss columns looks great but the column is split before the Axis and after the Axis line while I don't need to show the Axis line and just show positive results.  

Progress =
VAR DaysSinceStart = DATEDIFF([Start date], TODAY(), DAY)
VAR TotalDuration = DATEDIFF([Start date], 'ITD Projects'[Due Date], DAY)
VAR ProgressValue = DIVIDE(DaysSinceStart, TotalDuration, 0)
RETURN IF(TODAY() > 'ITD Projects'[Due Date], 1, ProgressValue)

and the Databar and Background Setting

kamini_0-1727623315271.pngkamini_1-1727623348518.png

 

Screen shot of the report,

kamini_2-1727623407050.png

Thank you so much for your time.

 

Sorry for the unclarity. Here is the code I have for showing Progress. 

 

Progress = VAR DaysSinceStart = DATEDIFF([Start Date], TODAY(), DAY) VAR TotalDuration = DATEDIFF([Start Date], [Finish Date], DAY) VAR ProgressValue = DIVIDE(DaysSinceStart, TotalDuration, 0) RETURN IF(TODAY() > [Finish Date], 1, ProgressValue)

 

The above shows the Progress for each project but now if you could share a sample code that shows a Project based on it's start date, finish date, and due date (When the project was due), I would greatly appreciate it. 

Thanks,

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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