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

Fecha total y máxima de ejecución

Tengo una tabla simple con el número de semana del producto y una medida total corriente:

Running Total = 
var maxdate = MAX(week)
return
CALCULATE(SUM(quantity),week<=maxdate)

Producto141516
Macbook204060
PC1020

Mi problema es que no estoy obteniendo el total de ejecución para la semana 16 de PC del producto. Quiero que muestre 20

No hay datos para esa semana en la tabla, que es solo Producto / Semana / Cantidad.

Intenté vincularlo a una tabla de tiempos, pero todavía tengo el mismo problema

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Hola @PowerBITestingG,

¿Podría intentar esto?

Running Total = 
VAR MaxDate = MAX(week)
RETURN
CALCULATE(
    SUM(quantity),
    FILTER(
        ALL(week),
        week <= MaxDate
            && (ISBLANK(SUM(quantity)) || week > Max(week[week]))
    )
)

Avíseme si necesita más ayuda.

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.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

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