Forum Discussion
dax allselected
Hola
Hice una medida con todosseleccionados. Ahora me gustaría excluir "un" filtro apllied en esta página de informe.
Thanx para cualquier ayuda.
5 Replies
- amitchandak
Super User
Puede usar all(Table[ColumnName]) o removefilters
https://docs.microsoft.com/en-us/dax/removefilters-function-dax
- Greg_Deckler
Community Champion
Generalmente lo hace con ALL, ALLEXCEPT o REMOVEFILTERS. Ayudaría a ver los datos de muestra y la fórmula. Por favor, consulte este post sobre cómo obtener su pregunta respondida rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
- Arnoh
Helper III
Hola
Esta es mi medida dax actual
verschil_vorig jaar v2 = var cumulatiefvorigjaar = CALCULATE(-SUM(zmutatie[bedrag]); FILTER(ALLSELECTED(zmutatie);zmutatie[boekjaar]+1=max(zmutatie[boekjaar]) && zmutatie[regeltype]<>16&&zmutatie[Week_iso]<=MAX(zmutatie[Week_iso]))) return ([Cumulatiefzmutatie]-cumulatiefvorigjaar)/cumulatiefvorigjaarNecesito te clear te filtro aplicado en: ; z_datum_tabel[jaar_selectie]
- v-alq-msft
Community Support
Hola, @Arnoh
Basándome en mi investigación, puedes probar la siguiente medida.
verschil_vorig jaar v2 = VAR cumulatiefvorigjaar = CALCULATE ( - SUM ( zmutatie[bedrag] ); ALL ( 'z_datum_tabel'[jaar_selectie] ); FILTER ( ALLSELECTED ( zmutatie ); zmutatie[boekjaar] + 1 = MAX ( zmutatie[boekjaar] ) && zmutatie[regeltype] <> 16 && zmutatie[Week_iso] <= MAX ( zmutatie[Week_iso] ) ) ) RETURN ( [Cumulatiefzmutatie] - cumulatiefvorigjaar ) / cumulatiefvorigjaarSaludos
Allan
Si este post ayuda,entonces por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
- Arnoh
Helper III
Hola Allen,
Thanx por tu reacción. No he resuelto el problema.
Hice otra función con allexept pero el dsadvatage de la misma es que cuando agrego otro filtro necesito ajustar la medida también.
¿Tiene alguna otra sugerencia.
Gracias