Forum Discussion

Learner_SG's avatar
Learner_SG
Helper IV
4 years ago
Solved

Filter Function &&& in DAX

Hi , I want to use the filter function based on multiple columns and select the data.

To be specific, I need to calculate the occupancy count for TODAY and also the filter out MALE from object.name

I have used the below function ,somehow it is not giving the desired result.It just counts 2 which does not change.Could help?

 
 
 
Dateobject.nameUsage_Status
25/2/2022WC Glass Flush Valve F_031
25/2/2022WC Glass Flush Valve F_021
25/2/2022WC Glass Flush Valve F_011
25/2/2022WC Glass Flush Valve M_021

 

Based on the above table , I expect to get 1 with my expression but gives 2 .

Male_toilet_occupancy_count =
CALCULATE (SUM( measurement[Usage_status] ),
FILTER ( 'measurement',measurement[objects.name] in{ "WC Glass Flush Valve M_01","WC Glass Flush Valve M_02"} && measurement[Date]=Today() )).
where shoud I correct it?