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

Recuento continuo para todos los años

¿Cómo puedo contar rolloing para todos los años que tengo en la tabla .?

Supongamos que la tabla original

Fecha de identificación

1 1/1/2020

2 1/2/2020

3 1/3/2020

4 1/1/2021

5 1/2/2021

6 1/3/2021

7 1/4/2021

y dar

2020 2021

Recuento 3 7

??

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Picture1.png

Medida de recuento : =
VAR _currentyear =
MAX ( 'Año'[Año] )
devolución
SI (
HASONEVALUE ( 'Año'[Año] ),
CALCULATE ( COUNTROWS ( Data ), 'Year'[Year] <= _currentyear )
)

Vínculo al archivo pbix de ejemplo

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Picture1.png

Medida de recuento : =
VAR _currentyear =
MAX ( 'Año'[Año] )
devolución
SI (
HASONEVALUE ( 'Año'[Año] ),
CALCULATE ( COUNTROWS ( Data ), 'Year'[Year] <= _currentyear )
)

Vínculo al archivo pbix de ejemplo

Syndicate_Admin
Administrator
Administrator

@bimchahaha

Si no tiene una tabla de fechas. Puede crear una columna de año

año = año('Tabla'[Fecha])
y crear una medida
Medida = COUNTX(FILTER(all('Table'),'Table'[year]<=max('Table'[year])),'Table'[Date])
pls ver el archivo adjunto a continuación

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.