Forum Discussion
How to put multiple filter conditions in a query?
- Anonymous8 years ago
Many thanks. This brought me on the track. I just had to add another ;easure for the Investigation open time (InvOpen) .
then the solution looks like:
AvgOpenComplaint =
CALCULATE (
AVERAGE(RawData[InvOpen]),
FILTER (
ALLEXCEPT(RawData,RawData[KeyCustomer]),
RawData[StatusCategory] ="Investigation Open"))
Many thanks for the first help. It works.
For the time we do have the following figures:
For Keyaccount10 the average of the 2 open Complaints should be calculated. Actual I see the average of all 5.
Hi Anonymous,
Please refer to below measure:
average time of the open complaint =
CALCULATE (
AVERAGE ( RawData[openComplaints] ),
FILTER (
ALLEXCEPT ( RawData, RawData[KeyCustomer] ),
StatusCategory = "Investigation Open"
)
)
Best regards,
Yuliana Gu
- Anonymous8 years agoNot applicable
Many thanks. This brought me on the track. I just had to add another ;easure for the Investigation open time (InvOpen) .
then the solution looks like:
AvgOpenComplaint =
CALCULATE (
AVERAGE(RawData[InvOpen]),
FILTER (
ALLEXCEPT(RawData,RawData[KeyCustomer]),
RawData[StatusCategory] ="Investigation Open"))