Forum Discussion
renlaforest
4 years agoHelper I
Cumulative Daily Target
Hi - It's embarassing how many hours I've spent trying to figure this out. My Data Model has a table called Project Setup with project in each row. Each project has a column called Start Date, Cl...
- 4 years ago
Hi renlaforest
Here is the sample file with the solution https://we.tl/t-pHo4kYyRleENTargetToDate = VAR CrrentDate = MAX ( EnumDates[Date] ) VAR FirstDateInFilter = CALCULATE ( MIN ( EnumDates[Date] ), ALLSELECTED () ) VAR NumberOfDays = DATEDIFF ( FirstDateInFilter, CrrentDate, DAY ) + 1 VAR ProjectTarget = SELECTEDVALUE ( 'ProjectSetup'[DailyENTarget] ) RETURN ProjectTarget * NumberOfDays
tamerj1
4 years agoCommunity Champion
Please let me know if you can share sample file?
renlaforest
4 years agoHelper I
Hi tamerj1 - sorry it took so long. I think this should work.
https://drive.google.com/file/d/1h24vWpK5mREvPzG1bDXkN94h_5s6qQlX/view?usp=sharing