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
PBIdeas
Advocate I
Advocate I

Calculation based on Start and End dates

Hi,

 

I'm trying to build a calculation for a CTC model (Cost-to-Complete) with three conditions:

 

  1. Only calculate from a given (dynamic) start date based on when the model was updated ("Update" measure)
  2. Only calculate for days after the start date of a given resource and before its end date
  3. Only calculate specific working days (defined as the "Days CTC" and represented with a 1 in that column in the calendar table)

 

The measure I have built is as follows:

PBIdeas_1-1624872152414.png

 

All resources are correctly being calculated until January 2, 2022 but then some of them no longer have values because its their end date.

 

The problem arises when I try to plot this under a time axis as the values are not shown. I suspect this is happening because, unlike the time dimension which is continuous, the formula returns values only for some days (e.g. it skips from December 16, 2021 to January 2, 2022) , but cannot get this to work. 

 

Thanks in advance for any help!

 

 

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@PBIdeas , At start you are using Sum(Table[Start Date]) , Try , Min for start date and Max for end date . Also make sure you calendar has all the dates till last end date 

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

Many thanks Amit!

 

This has fixed the date issue, however when I now multiply the CTC days by the daily Revenue rate the values remain  the same even when people are no longer included in the CTC days - see below:

 

PBIdeas_0-1624878034346.png

 

What is wrong here? It looks like the results are not being interpreted as aggregations.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.