Un usuario Pregunto ✅
zaza
Tengo la siguiente medida de recuento acumulativo que funciona bien:
Count =
CALCULATE (
DISTINCTCOUNT ( 'X Data'[Story ID] ),
FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) ),
USERELATIONSHIP ( 'Date'[Date], 'X Data'[_Story-Sprint Start] )
)
Sin embargo, me gustaría SUMAR otra columna pero solo para los valores distintos (por lo que básicamente se ignoran las filas duplicadas)
SUM =
CALCULATE (
SUM ( 'X Data'[Story Pints] ), `<-But only for the Distinct of Story ID`
FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) ),
USERELATIONSHIP ( 'Date'[Date], 'X Data'[_Story-Sprint Start] )
)
Amitchandak
@zaza, prueba como
SUM =
CALCULAR (
SUMX (Resumir (‘Datos X’, ‘Datos X'[Story ID] , ‘Datos X'[Story Pints]), [Story Pints] ), // `<-Pero solo para el distintivo de ID de historia`
FILTRO (ALLSELECTED (‘Fecha’), ‘Fecha'[Date] <= MAX ('Fecha'[Date] )),
USERELATIONSHIP (‘Fecha'[Date], ‘Datos X'[_Story-Sprint Start] )
)