Forum Discussion
summarize with multiple filter
- 5 years ago
You are not comparing the max of the Created column with anything, so to convert the max date to a boolean expression it will be treating 0 as false and non-zero as true, so all your rows will match that condition. You could use a variable to capture the max value and then compare it to the created value for the current row.
eg
TPCC Clients =
SUMMARIZE (
FILTER (
'Share Point',
VAR maxCreated =
MAX ( 'Share Point'[Created] )
RETURN
'Share Point'[Created] = maxCreated
&& CONTAINSSTRING ( 'Share Point'[Signed Off], "yes" )
),
'Share Point'[Region],
'Share Point'[Delivery Countries],
'Share Point'[Client Holding Name],
'Share Point'[Created]
)
You are not comparing the max of the Created column with anything, so to convert the max date to a boolean expression it will be treating 0 as false and non-zero as true, so all your rows will match that condition. You could use a variable to capture the max value and then compare it to the created value for the current row.
eg
TPCC Clients =
SUMMARIZE (
FILTER (
'Share Point',
VAR maxCreated =
MAX ( 'Share Point'[Created] )
RETURN
'Share Point'[Created] = maxCreated
&& CONTAINSSTRING ( 'Share Point'[Signed Off], "yes" )
),
'Share Point'[Region],
'Share Point'[Delivery Countries],
'Share Point'[Client Holding Name],
'Share Point'[Created]
)