Forum Discussion
Count and Sum Slicer error
- 8 years ago
Thanks v-ljerr-msft,
Sorry for the slow response, this gave me something close to what i was looking for. I managed to solve the issues using the below equation.
Thanks again.
ActiveFTE:= SUMX( 'Table 1', 'Table 1'[FTE] * IF(
CALCULATE( COUNTA( 'Date'[DateKey]),
FILTER( 'Date',
'Date'[DateKey] >= 'Table 1'[CommencedDateKey] && 'Date'[DateKey] <= 'Table 1'[EndedDateKey]) ) > 0 , 1 , 0))
Hi eamonnde,
Could you try using the formula below to see if it works? :smileyhappy:
ActiveEmployees =
SUMX (
'Date',
CALCULATE (
SUM ( 'Table 1'[ABC] ),
FILTER (
'Table 1',
'Date'[DateKey] >= 'Table 1'[CommencedDateKey]
&& 'Date'[DateKey] <= 'Table 1'[EndedDateKey]
)
)
)
Regards
Thanks v-ljerr-msft,
Sorry for the slow response, this gave me something close to what i was looking for. I managed to solve the issues using the below equation.
Thanks again.
ActiveFTE:= SUMX( 'Table 1', 'Table 1'[FTE] * IF(
CALCULATE( COUNTA( 'Date'[DateKey]),
FILTER( 'Date',
'Date'[DateKey] >= 'Table 1'[CommencedDateKey] && 'Date'[DateKey] <= 'Table 1'[EndedDateKey]) ) > 0 , 1 , 0))