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.
He creado algunas medidas para contar el número de reservas que se realizan a diario. La idea principal es que quiero capturar las reservas de hoy y ayer, entonces contra el propietario que las ha reservado (ver tabla a continuación) cada fila es un miembro del equipo diferente. Me he escondido para el propósito de este hilo.
Mis cálculos:
Today = CALCULATE(COUNT(Data[Status]),Data[Date was booked]>=TODAY())
Backend-Yesterday = CALCULATE(COUNT(Data[Status]),DATESINPERIOD(Data[Date was booked],LASTDATE(Data[Date was booked]),-2,DAY))
Yesterday = [Backend-Yesterday] - [Today]
Esto proporciona los siguientes registros:
La única diferencia en las tablas es la primera tabla que excluyo la fila cuando el propietario es 'NA' ya que aún no se ha atribuido correctamente. Sin embargo, verá los siguientes elementos:
Solved! Go to Solution.
@andrewb95 , por qué > por hoy
Inténtalo como
Today = CALCULATE(COUNT(Data[Status]),Data[Date was booked]=TODAY())
Backend-Yesterday = CALCULATE(COUNT(Data[Status]),Data[Date was booked]=TODAY()-1)
Yesterday = [Backend-Yesterday] - [Today]
@andrewb95 , por qué > por hoy
Inténtalo como
Today = CALCULATE(COUNT(Data[Status]),Data[Date was booked]=TODAY())
Backend-Yesterday = CALCULATE(COUNT(Data[Status]),Data[Date was booked]=TODAY()-1)
Yesterday = [Backend-Yesterday] - [Today]
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |