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
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
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.