cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Hallazgo de recuento de ayer

Hola a todos,

Cómo encontrar el recuento de Yersterday para la siguiente tabla:

Para sus datos de referencia, la naturaleza es como en la siguiente tabla, el recuento de ayer debe ser 2 para la fecha 1/6/2023, ya que la fecha anterior del 1/8/2023 no está disponible. Entonces, ¿cómo encontrar el conteo de yerterdays? Por favor, ayúdame

Fecha de registro Recuento de registros
1/5/20232
1/6/20232
1/9/20231
1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Hola

Puede utilizar la siguiente medida:

Yestardays Count = 
Var __last_date = CALCULATE(MAX('Table'[date of registration ]))
Var __yesterday = CALCULATE(MAX('Table'[date of registration ]), 'Table'[date of registration ] < __last_date)
Return
CALCULATE(SUM('Table'[Registration count ]), 'Table'[date of registration ] = __yesterday)

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors