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
BItoken
Helper III
Helper III

total de ejecución para una medida calculada en fechas

Hola a todos

Tengo una medida basada en una fecha de venta y una fecha de calendario seleccionada como el selector como a continuación

Reservado con antelación ?
var qr á SELECTEDVALUE(QTR[Qtr Name])
var wn á SELECTEDVALUE(Qtr[Número de semana])
devolución
CALCULATE(Sum(SalesTable[Sales Amt]),
Tabla[sales_fq] á qr,
Tabla[sales_week] á wn,
)
Salida: Como en Image Booked EarLy
Booked Early.png
Ahora necesito crear una medida para Correr total por semana. Soy consciente de esta fórmula para correr total y utilicé
SUMX(FILTER(ALLSELECTED(SalesTable[sales_week]), SalesTable[sales_week] <-max(SalesTable[Sales_week])),[Booked Early])

¿Alguien puede ayudar!!

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hola @BItoken ,

¿Qué tal el resultado después de seguir las sugerencias mencionadas en mi publicación original? ¿Podría proporcionar más detalles al respecto si no cumple con su requisito?


Saludos

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hola

Idealmente, esto es lo que deberías estar haciendo:

  1. Cree una tabla de calendario y escriba fórmulas de columna calculadas para extraer el año financiero, el mes y el trimestre
  2. Cree una relación desde la columna Fecha de la tabla de datos base hasta la columna Fecha de la tabla calendario
  3. A sus objetos visuales, arrastre todas las dimensiones de tiempo desde la Tabla de calendario
  4. Escribir estas medidas

Reservado con antelación- Suma(SalesTable[Sales Amt])

Total de ejecución anticipada de reserva: CALCULATE([Booked Early],DATESBETWEEN(Calendar[Date],MINX(ALL(Calendar),Calendar[Date]),MAX(Calendar[Date])))

Espero que esto ayude.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-lid-msft
Community Support
Community Support

Hola @BItoken ,

Podemos intentar crear una medida para satisfacer sus requisitos:

Running Booked Early =
CALCULATE (
    SUM ( SalesTable[Sales Amt] ),
    FILTER (
        ALLSELECTED ( SalesTable ),
        SalesTable[sales_fq] <= MinQTR[Qtr Name]
            && SalesTable[sales_week] <= MIN ( Qtr[Week Num] )
    )
)

Si no cumple con su requisito, ¿podría proporcionar una muestra de maqueta basada en datos falsos o describir los campos de cada tabla y las relaciones entre tablas simplemente?


Por favor, no contenga ninguna Información Confidencial o Datos Reales en su respuesta.


Saludos

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.