Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

date evaluation

Hi everyone I have a problem with a date evaluation.

 

Starting position:

List 1: Calendar

DateWorking day
01.01.2020True
02.01.2020True
03.01.2020True
04.01.2020True
05.01.2020False
06.01.2020False

 

List 2: Construction program

Name

StartEndValue

A

01.01.202003.01.202050
B03.01.202005.01.202060
C02.01.202006.01.202030
D

04.01.2020

06.01.202010

 

Goal:

DateValuecalculation only example
01.01.202016.66(A/3)
02.01.202026.66(A/3 + C/3)
03.01.202056.66(A/3 + C/3 + B/2)
04.01.202050(B/2 + C/3 + D/1)
05.01.20200 
06.01.20200 

What is the best way to do this?

 

I've tried several ways, but don't understand how best to get the results. The first attempt was with the formula:

 

 

 

List.Dates([VorgangGeplanterAnfangsTermin],Duration.Days(
[VorgangGeplanterEndTermin]-[VorgangGeplanterAnfangsTermin])+1,#duration(1,0,0,0))

 

 

 

Then I expanded the list that resulted from it, but so i get several lines per component, which is not a good idea.
can I also work with the list without expanding it?
and how can i then take the calendar into account in a measure?

 

Or do I have to work better with a measure:

DATESBETWEEN(<dates>,<start_date>,<end_date>)

 

Maybe can ibarrau  help me?
you helped me a lot last time, unfortunately my dashboard has become more complex and this solution is no longer sufficient

 

Thanks a lot

T

5 Replies