Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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/2023 | 2 |
1/6/2023 | 2 |
1/9/2023 | 1 |
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)
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |