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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors