Forum Discussion

Sagimore88's avatar
Sagimore88
Frequent Visitor
4 years ago
Solved

Days between two dates average for a customer orders.

Hello, Sorry very new to this and trying to help migrate(recreate ssrs reports to PowerBI) - All data is pulled in from the SQL server.   I have a [Customer Name] column and a measure with the tot...
  • tamerj1's avatar
    4 years ago

    Hi Sagimore88 

    please try

    Avg Lag Time =
    AVERAGEX (
        TableName,
        DATEDIFF ( TableName[Recieved Date], TableName[Effective Date], DAY )
    )