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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.