Forum Discussion

joep78's avatar
joep78
Icon for Helper III rankHelper III
6 years ago

Calculate contract duration based on a date slicer

Hi all,

 

I'm struggling with a measure to get an overview per year of the SUM of the contract duration. this first year should be based on a date slicer. 

 

the content is as follow (simple example):

contract codecontract end date
131/12/2022
231/12/2023
331/12/2022
431/12/2025
531/12/2021

 

when i set the date slicer on 2020, the result should be:

 202020212022202320242025
 321000
 432100
 321000
 654321
 210000
SUM contract duration18138421

 

I can't figure out what kind of measure I should use in order to get this result. Hopefully somebody can help me out!

 

3 Replies