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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
jhomps
New Member

El último valor del mes

Hola

Estoy atascado para obtener el último valor de cada mes.

¿Alguien puede ayudarme, por favor? Soy un mendigo en Power Bi.

Mi medida fue:

último valor: CALCULATE(MAX('Histogram-EQUIP-MBR'[Pronóstico mensual]); LASTDATE('Histograma-EQUIP-MBR'[Fecha]))

teste.PNG

3 REPLIES 3
amitchandak
Super User
Super User

Puede usar

El último valor es CALCULATE(MAX('Histogram-EQUIP-MBR'[Pronóstico mensual]);
filter(all('Histogram-EQUIP-MBR'),'Histogram-EQUIP-MBR'[Data]' LASTDATE('Histogram-EQUIP-MBR'[Data])))

Mejor crear una tabla de fechas

El último valor es CALCULATE(MAX('Histogram-EQUIP-MBR'[Pronóstico mensual]);
filter(all('Date'),'Date'[Date]' LASTDATE('Histogram-EQUIP-MBR'[Date])))

De hecho, el uso de esto también podría ser muy útil

https://docs.microsoft.com/en-us/dax/lastnonblankvalue-function-dax,

Pero usted necesita asegurarse de que hay mes en contexto

Ashish_Mathur
Super User
Super User

Hola

Refiera a este link - https://exceleratorbi.com.au/lastnonblank-explained/.

Espero que esto ayude.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
az38
Community Champion
Community Champion

Hola @jhomps

Tratar

last value = CALCULATE(MAX('Histograma-EQUIP-MBR'[Previsto Mensal]);
FILTER(ALL('Histograma-EQUIP-MBR'); 'Histograma-EQUIP-MBR'[Data]=LASTDATE('Histograma-EQUIP-MBR'[Data]))
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors