Forum Discussion

IsaacAsher's avatar
IsaacAsher
Icon for Helper I rankHelper I
7 years ago
Solved

DAX Days between two dates in different tables with filter

I have a table I'm trying to summarize: Master table ID    Worked 1      1/1/2018 2      3/4/2017 3      5/2/2015 4      6/7/2018 ....   by using my specialized Calendar table: Date    ...
  • Greg_Deckler's avatar
    7 years ago

    I believe you want something along the lines of:

     

     

    Measure = 
    VAR __worked = MAX('Master'[Worked])
    RETURN
    COUNTX(FILTER(ALL('Calendar'),[PostingDay] = TRUE() && [Date]<=TODAY() && [Date]>=__worked),[Date])