Forum Discussion

Jaesonkim's avatar
Jaesonkim
Frequent Visitor
3 years ago
Solved

Counter in between two dates

Hello, i want to have your great solution and idea for the calculation

I want to counter the number of contract between the contract start date and expired date

i have 2 simple table as date lookup and contract table.

if i make filter with the date lookup and i choose certain year month, i want to show the contract number, which are in the between the two dates .

i did below dax measure but it's not working as what i want.

Count contracts in period =
CALCULATE( DISTINCTCOUNT('Table'[Contract No.]), FILTER(ALL('Lookup Date'),'Lookup Date'[Date] <= MAX('Lookup Date'[Date])))
here is the link