Forum Discussion

PhineasT's avatar
PhineasT
Icon for Helper I rankHelper I
3 years ago
Solved

Average Wait Time Per Day of Week

I am trying to display the average wait time on Monday (per day, like June 3, 2019), per Mondays in the week, in the month, in the Quarter, every Monday in 2019. I've managed to pull in the averag...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi  PhineasT ,

    I created some data:

     

    Here are the steps you can follow:

    1. Create measure.

    Week_Avg =
    AVERAGEX(
        FILTER(ALL('Table'),
        YEAR('Table'[Date])=YEAR(MAX('Table'[Date]))&&
        'Table'[Week]=MAX('Table'[Week])
        &&'Table'[WeekDay]=1),[Amount])
    Month_Avg =
    AVERAGEX(
        FILTER(ALL('Table'),
        YEAR('Table'[Date])=YEAR(MAX('Table'[Date]))&&
      MONTH('Table'[Date])=
        MONTH(MAX('Table'[Date]))
        &&'Table'[WeekDay]=1),[Amount])
    Qu_Avg =
    AVERAGEX(
        FILTER(ALL('Table'),   YEAR('Table'[Date])=YEAR(MAX('Table'[Date]))&&QUARTER('Table'[Date])=QUARTER(MAX('Table'[Date]))&&'Table'[WeekDay]=1),[Amount])

    2. Result:

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly