Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

DAX working with two dates

I was working on a dax problem.
I have the resource allocation from start date to end date....
I need to consider the average meaning divide by 12, However when we have start date or end date in between the year we need to sum up for the months available and divide By 12

example

resource allocation               start date                    end date
0.3                                       Aug 2021                       March 2023

the result should show the allocation for 2021 0.3*5/12=0.125
the result should show the allocation for 2022 0.3*12/12=0.3
the result should show the allocation for 2023 0.3*3/12=0.075

3 Replies