Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hola Comunidad de Power BI,
Tengo una lista de SharePoint llamada AnimalList con dos columnas:
Puedo mostrarlos en una tabla, como se muestra a continuación:
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
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:
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.
@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))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.