Forum Discussion

filipedonati's avatar
filipedonati
New Member
7 years ago
Solved

Dax Help: Create table with variable # of lines according to date difference

Hi!   I'm having big trouble to create a new table, does anybody know the solution? it would help a Lot!!   I Have a table with orders like this: Order Original Date Actual Date Difference...
  • v-chuncz-msft's avatar
    7 years ago

    filipedonati,

     

    You may refer to the DAX below.

    Table =
    VAR c =
        CALENDARAUTO ()
    RETURN
        GENERATE (
            Table1,
            FILTER ( c, [Date] >= Table1[Original Date] && [Date] <= Table1[Actual Date] )
        )