Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to sum overlapping values in a time range?

I have a dataset comprised of Project Titles, Start Date, End Date, and a Value Point assigned to each project that describes how intensive it is. I want to visualize this data dynamically  and display the sum of the value points that overlap in a given time range. Below is some sample data (bear in mind, the original dataset has many, many more rows).

 

In the example below, Projects A, B, C and D overlap, having a total of 37 points and 3 Project Managers (PM), and later projects A, D and E overlap for a short while, having a total of 34 points for a few days. I need now to find a way to sum the Points that overlap in time, and somehow plot it in a chart, divided by PMs. The goal is to be able to see the total amount of Points at any given time by PM for project planning. How could I go about it using DAX? I am thinking in the direction of the EARLIER function, but being a Power BI relative newbie, I am not sure how to set it up. Does anyone have an input? 

 
Project Title Start date End date Points PM
Project A  12/04/2019 16/07/2023 15 Michaela
Project B 18/06/2020 15/05/2022 7 Wes
Project C 01/12/2021 19/04/2023 3 Michaela
Project D 20/04/2019 14/07/2023 12 Asher
Project E 09/07/202317/08/2024 7

Laurel

3 Replies