Forum Discussion
DAX help with strange distribution
- 5 years ago
Hi, peterso
You can do like this. Create a date table, don't create relationships, and create a measure to calculate the desired result.
Like this:
Date Table = CALENDAR(MIN('Table'[Start Date]),MAX('Table'[End Date]))Measure = SUMX(FILTER(ALL('Table'),[End Date]>MIN('Date Table'[Date])),[Cost])If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I reviewed those files earlier. They aren't relevant for this distribution.
- amitchandak5 years ago
Super User
peterso , please share in table format. Let me try. I need to get $16,000 for Jan 2018, that should be Jan 2021. As there is only one project is there on Jan 2018 ?
- amitchandak5 years ago
Super User
peterso ,Not getting your number. Check Page 2 and table 3
- peterso5 years ago
Helper II
Hi - I think maybe it would help to entirely ignore the start date.
Essentially this distribution ignores the start date. It assumes all projects are started as as long as the end date is not past today's date.
Once the end date for a project has passed, the project costs drop off.