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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors