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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors