Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Count date by contract expiration

I would like to understand how to count the number of active "contracts" whose information is based on maturity data and look at the 12-month average. Print for you to check, please help.
  • andre's avatar
    6 years ago

    if you have a Contract table and Calendar table then you count number of Active contracts you can use something like this

     

    Count of Active Contracts = countrows(calculatetable(all(Contract), Contract(StartDate)<SelectedValue(Calendar[date]) && Contract[MaturityDate}>SelectedValue(Calendar[date]))