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
Syndicate_Admin
Administrator
Administrator

Mostrar targetonlyfor the last3months for bullrt chart by okviz

Hola

Utilizo el gráfico de viñetas de OKViz para mostrar las ventas por fecha de venta y agrego el objetivo. Ahora necesito mostrar el objetivo solo para los últimos monts. ¿Hay alguna manera de hacerlo?

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Hay @jaweher89 ,

Pruebe algunas medidas como las siguientes para reemplazar el objetivo:

Replace the targets =
CALCULATE(
    [targets],
    FILTER( ALLEXCEPT( 'table', table[category] ), [date] >= TODAY() - 30 )
)

o

Replace the targets =
IF( SELECTEDVALUE( table[date] ) >= TODAY() - 30, [targets], BLANK() )

Si te entendí mal, por favor comparte algunos datos de ejemplo y el resultado esperado.

Saludos

Equipo de apoyo a la comunidad _ chenwu zhu

Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Hay @jaweher89 ,

Pruebe algunas medidas como las siguientes para reemplazar el objetivo:

Replace the targets =
CALCULATE(
    [targets],
    FILTER( ALLEXCEPT( 'table', table[category] ), [date] >= TODAY() - 30 )
)

o

Replace the targets =
IF( SELECTEDVALUE( table[date] ) >= TODAY() - 30, [targets], BLANK() )

Si te entendí mal, por favor comparte algunos datos de ejemplo y el resultado esperado.

Saludos

Equipo de apoyo a la comunidad _ chenwu zhu

Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.

Syndicate_Admin
Administrator
Administrator

@jaweher89, ¿la medida del mes pasado puede hacer eso?

Ejemplo de uso de inteligencia de tiempo y tabla de fechas

last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

rodando 3

Rolling 3 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],eomonth(MAX('Date'[Date ]),-1) ,-3,MONTH))

Este no es mi problema.

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.