Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
JVG
Frequent Visitor

Proyectado gasto

Hola, 

Espero puedan ayudarme

 

Cuento con la siguientes columanas: Mes, Gasto Mensial, Gasto Acumulado, y me gustaria sacar el proyectado como lo muestra la columna Proyectado tomando en cuenta que la formula para realizar el calculo es como se muestra en la columna Formula, esto debe ser dinamico, es decir: cuando sea marzo y ya se cuente con los gastos reales el proyectado sería para los meses siguientes y asi sucesivamente.

Captura.JPG

Ya cree una tabla con los gastos mensuales y los acumulados pero no he podido lograr sacar el proyectado

JVG_1-1677514216650.png

¡Saludos! 🙂 

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @JVG ,

 

My Sample is as below.

RicoZhou_0-1677649624933.png

RicoZhou_1-1677649640669.png

Data model:

RicoZhou_3-1677649741445.png

Measure:

Accum = CALCULATE(SUM('Table'[Expense]),FILTER(ALL('Month'),'Month'[Month Number]<= MAX('Month'[Month Number])))
Projected = 
( SELECTEDVALUE ( 'Month'[Month Number] ) - 1 )
    * CALCULATE (
        SUM ( 'Table'[Expense] ),
        FILTER ( ALL ( 'Month' ), 'Month'[Month Number] = 2 )
    )
    - ( SELECTEDVALUE ( 'Month'[Month Number] ) - 2 )
        * CALCULATE (
            SUM ( 'Table'[Expense] ),
            FILTER ( ALL ( 'Month' ), 'Month'[Month Number] = 1 )
        )
Projected Accum = SUMX(FILTER(ALL('Month'),'Month'[Month Number]<= MAX('Month'[Month Number])),[Projected])

Result is as below.

RicoZhou_2-1677649728892.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.