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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Trimestre anterior

Hola Comunidad de Power BI,

Tengo una lista de SharePoint llamada AnimalList con dos columnas:

  • Título
  • Mi cita

Puedo mostrarlos en una tabla, como se muestra a continuación:

GarryPope_1-1652109754138.png

Pero quiero mostrar una tarjeta que muestre el número de filas del trimestre anterior.
Así que no importa qué día esté mirando el informe, la tarjeta solo mostrará el número de filas del trimestre anterior.

Para los datos en la captura de pantalla anterior, la tarjeta mostraría 7 ya que hoy es 9 de mayo de 2022, por lo que el último trimestre debe haber sido enero, febrero y marzo de 2022.

Cualquier ayuda sería muy apreciada. He mirado Microsoft Docs Previous Quarter pero no tengo suerte.

Gracias

Garry

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@GarryPope ,

Intente lo siguiente para crear una medida:

rows of previous quarter =
VAR _t =
    SUMMARIZE (
        'Table',
        'Table'[Title],
        'Table'[Date],
        "diff", DATEDIFF ( MAX ( 'Table'[Date] ), TODAY (), QUARTER )
    )
RETURN
    COUNTROWS ( FILTER ( _t, [diff] = 1 ) )

Salida:

Eyelyn9_0-1652333974962.png

Saludos
Eyelyn Qin
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

@GarryPope , Asegúrese de tener una fecha marcada como tabla de fechas. Y anteriorQuater necesita una fecha para ser seleccionado en la página

Pruebe en base a hoy

Último Qtr =
var _max1 = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _max = eomonth(_max,-1* if( mod(Month(_max),3) =0,3,Month(_max)))
var _min = eomonth(_min,-3)+1
devolución
CALCULATE([net] ,DATESBETWEEN('Date'[Date],_min,_max))

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.