Forum Discussion

Justas4478's avatar
Justas4478
Post Prodigy
4 years ago
Solved

Weekly average transactions for specific Hours

Hello, I am trying to modify measure to Calculate the weekly average number of transactions between 10am and 1pm (hour is the measure) on a Saturday (day name) for each store and in total, between we...
  • rohit_singh's avatar
    rohit_singh
    4 years ago

    Justas4478 

    Please refer to the code I posted in my comment above. Here it is again :

    CALCULATE (
    'Actuals'[Transactions],
    FILTER (
    ALLSELECTED ( 'Date'),
    'Date'[Date]<= _closingdate && 'Date'[Date]>= _min),
    FILTER (
    ALLSELECTED('Date'[Day Name]),
    'Date'[Day Name] = _saturday),
    FILTER(
    ALLSELECTED('Time'[Time Hour]),
    'Time'[Time Hour]<= _hourend && 'Time'[Time Hour]>= _hourstart)

    )

    Try using multiple filter clauses instead of one.