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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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