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
SoniaGo
Helper I
Helper I

Fix value of previous month of actual month for future month

hello

I need help to fix a the value as follows:

 

I have a calculated data of previous month. For actual month and future months I need to show always Yellow cell. Means the value of the previous month (considering Today) . 

When we are in August, I would need to have July value for August and for future months. etc.

 

SoniaGo_0-1689933794375.png

 

This is my measure and what I need to fix.

 

Ocupacion fcst vol_ = if(values('Calendar'[Meshoy])<=values('Calendar'[Añomes]),CALCULATE (SP2_Valuated_stock_Full[Total Stock EndMonth Previuos vol M2],AQUI NECESITO FIJAR SOLO DEL MES ANTERIOR A MES ACTUAL(CELDA AMARILLA)+Total vol FcstP M2]-[Total vol FcstS M2],if(values('Calendar'[Meshoy])>values('Calendar'[Añomes]),CALCULATE (SP2_Valuated_stock_Full[Total Stock EndMonth vol M2])))
 
many thanks¡¡
2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@Syndicate_Admin

Proporcione datos de muestra que cubran su problema o pregunta por completo, en un formato utilizable (no como una captura de pantalla).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Muestre el resultado esperado en función de los datos de muestra que proporcionó.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Si, perdona. Te adjunto resultado esperado

 

Para el mes actual julio , valor esperado es repetir en mes en curso mas futuros el valor remarcado que es el total del mes anterior (esta medida ya la tengo calculada).

 

Cuando estemos en agosto, cogera el ultimo valor de Julio y lo repetirá todos los meses. 

 

SoniaGo_0-1690212524719.png

 

necesito poder fijar el valor en amarillo para todos los meses siguientes. 

 

gracias¡¡

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.

Top Kudoed Authors