Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
KG1
Resolver I
Resolver I

Filtros múltiples en una medida SUM acumulativa

Hola

Tengo una medida que está calcuando una SUMA acumulada

CALCULATE(SUM('Turnover & Contribution 20_21 Reals'[Value]),FILTER(ALL('Turnover & Contribution 20_21 Reals'),[Month]<-MAX([Month])),VALUES('Turnover & Contribution 20_21 Reals'[Contract]))

Necesito añadir 2 filtros a la medida

Nombre de columna: presupuesto (filtro en "F1")

Nombre de columna: Tipo (filtro en "Contribución")

¿Cómo incorporo varios filtros en la medida?

Gracias de antemano

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@KG1

Modifique la función de filtro como se muestra a continuación:

FILTER(
         ALL('Turnover & Contribution 20_21 Actuals'),
         [Month]<=MAX([Month]) && [Budget] = "F1" && [Type] = "Contribution"
        )

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Haga clic en el icono Thumbs-Up a la derecha si le gusta esta respuesta 🙂

YoutubeLinkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@KG1

Modifique la función de filtro como se muestra a continuación:

FILTER(
         ALL('Turnover & Contribution 20_21 Actuals'),
         [Month]<=MAX([Month]) && [Budget] = "F1" && [Type] = "Contribution"
        )

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Haga clic en el icono Thumbs-Up a la derecha si le gusta esta respuesta 🙂

YoutubeLinkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Genial - gracias

Funcionó perfectamente

amitchandak
Super User
Super User

@KG1, no muy claro

Inténtalo como

CALCULATE(SUM('Turnover & Contribution 20_21 Reals'[Value]),FILTER(ALL('Turnover & Contribución 20_21 Reales'),[Mes]<-MAX([Mes])),VALUES('Turnover & Contribution 20_21 Reals'[Contrato]), 'Turnover & Contribution 20_21 Reals'[Presupuesto] á"F1" , 'Turnover & Contribution 20_21 Reals'[Type]"Contribution")

O

CALCULATE(SUMX(filter('Turnover & Contribution 20_21 Actuals', 'Turnover & Contribution 20_21 Actuals'[Presupuesto] ?"F1" && 'Turnover & Contribution 20_21 Reals'[Type]-"Contribution") ,'Turnover & Contribution 20_21 Reals'[Value]),FILTER(ALL('Turnover & Contribution 20_21 Reals'),[Month]<-MAX([Month])),VALUES('Turnover & Contribution 20_21 Reals'[Contract]), )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.