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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
DanyVega
Frequent Visitor

Ayuda con slicer de fechas y variables

Buenas tardes Comunidad.

 

Me encuentro con un problema que no logro solucionar con el nivel de conocimiento que tengo.

 

Tengo 2 tablas (calendario y metas), dentro de la tabla metas tengo coordinador, fecha (dia a dia) y $ meta, la información es de enero a diciembre 2019.

 

Tengo 2 necesidades pero una es  muy sencillo solucionarla, la 2da es en la que estoy atorado.

1.- Mostrar la suma de las metas del rango de dias seleccionado (sin problema lo obtengo relacionando las tablas por medio de la fecha y en automatico al interactuar con el slicer de fecha me da lo correspondiente).

2.- Si mi rango de fechas del slicer va de ej. 12 de Junio al 26 de agosto, mostrar la suma total de los meses que coincidan, es decir: la suma de todo junio, todo julio y todo agosto. o de igual forma si mi slicer tiene un rango del 2 al 15 de septiembre, que me muestre la suma total de todo septiembre.

 

Gracias de antemano.

 

Saludos.

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @DanyVega ,

Please try this:

Measure =
CALCULATE (
    SUM ( 'Goal'[Goal] ),
    FILTER (
        'Goal',
        'Goal'[Date].[MonthNo] >= MONTH ( MIN ( 'Calendar'[Date] ) )
            && 'Goal'[Date].[MonthNo] <= MONTH ( MAX ( 'Calendar'[Date] ) )
    )
)

1.PNG2.PNG

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xuding-msft
Community Support
Community Support

Hi @DanyVega ,

Please try this:

Measure =
CALCULATE (
    SUM ( 'Goal'[Goal] ),
    FILTER (
        'Goal',
        'Goal'[Date].[MonthNo] >= MONTH ( MIN ( 'Calendar'[Date] ) )
            && 'Goal'[Date].[MonthNo] <= MONTH ( MAX ( 'Calendar'[Date] ) )
    )
)

1.PNG2.PNG

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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