Forum Discussion
External filters does not affect ALLEXCEPT
- 8 years ago
you are giving column name in ALLSELECTED whereas it need to be only Table Name
ALLSELECTED( 'Tabla Cruce')
can you share your measure
it has to be allselected(tablename), not any column in it.
Hi, parry2k
Here is it
MEASURE TEST =
VAR ClaseS = CALCULATE( [Número de Empresas], ALLSELECTED( 'Tabla Cruce'[CIIUEmpresa] ) )
VAR GrupoSu = CALCULATE( [Número de Empresas], ALLSELECTED( 'Tabla Cruce'[GRUPOEmpresa] ) )
VAR DivisionS = CALCULATE( [Número de Empresas], ALLSELECTED( 'Tabla Cruce'[DIVISIONEmpresa] ) )
VAR SeccionS = CALCULATE( [Número de Empresas], ALLSELECTED( 'Tabla Cruce'[SECCIONEmpresa] ) )
RETURN
IF( [Número de Empresas] = 0, BLANK(), SWITCH( TRUE,
SUM( 'Tabla Sectores'[id_Sector] ) = 1, ClaseS,
SUM ('Tabla Sectores'[id_Sector] ) = 2, GrupoSu,
SUM ('Tabla Sectores'[id_Sector] ) = 3, DivisionS,
SUM ('Tabla Sectores'[id_Sector] ) = 4, SeccionS ) )
- parry2k8 years agoSuper User
you are giving column name in ALLSELECTED whereas it need to be only Table Name
ALLSELECTED( 'Tabla Cruce')
- AlejandroPCar8 years agoHelper IV
Hi , parry2k
Oh, you are right but... the problem and the important of the allexcept is when I filter with "Nivel Sector" Slicer. And thats my original measure does. Your solution works but cannot filter by "Nivel Sector" anymore. Thats I think is why allexcept is important.
- parry2k8 years agoSuper User
what is that 2nd measure you are lookign at does
- parry2k8 years agoSuper User
not sure i followed you that you can fitler by nivel sector, you can filter by nivel sector, this change is only have impact on one measure "Numero Empresas Secor", so not sure what it will not filter.
sorry man, because of this langugage challenge, having bit hard time to understand the request.