Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Complex Budget Density per Day Calculation

Hello all,

 

thanks for the attention.

 

I am not able to solve a issue I meet up

 

I have the following table A:

 

ProgettoBusiness LineStatusActivity BudgetStart dateEnd DateDelta DaysDensity Budget per days 
A1KOpen              15.000 €15/07/202223/09/202270                                  214 €
A2XClose                3.000 €09/09/202207/10/202228                                  107 €
A3MHold                1.700 €04/11/202201/12/202227                                    63 €
A4MOpen                5.000 €30/12/202225/01/202326                                  192 €
A5XClose              10.000 €24/02/202321/03/202325                                  400 €
A6YHold                6.800 €21/04/202315/05/202324                                  283 €
A7YClose                1.000 €16/06/202309/07/202323                                    43 €

 

Delta days : difference between end date and start date

Density: Activity Budget / Delta days

 

I would like to get a table/mesures that permits to get the density for each days in the following way:

 

for each days of the calendar, it sums the density of all projects if they are started and not ended in that date.

 

I was able to obtain a good results creating a new table (B) with all days and then sum density (Last column) if project is active (between start and end date) using this formula:

Density_rev = calculate(sum('A'[Density]),filter('A',and('A'[Start date]<'Date'[Date],'A'[End Date]>'Date'[Date])))

but of course in this way I am not able to use the filter from Table A.

is there a way to get the same result while still being able to use the filters?
 
I understand it is a very complex question (for me)

 
Many thanks who can advice me
 
GV

1 Reply