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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.