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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

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.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.