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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Abevann
Helper III
Helper III

Want to get the newest date in a dashboard based in segmentation configuration

Guys,

 

I have a requirement; I need to se the newest date of a page base in the value of a segmentation.Filtro fecha - copia.jpg

In this page, I would like to get the 

oldest or newest date; in this instance, according to the segmentation, the last date is 21/10/2020, but with the formula MAX(Fecha[Fecha]) the obained value is 12/05/2021, wich is the oldest of all data; is there a way with DAX to get the interval oldest 21/10/2020 and the newest (06/04/2020? The idea is to get the date updated every single time that I change the values in slicer. Any suggestion?

 

Thanks a lot, regards,

Abelardo

1 ACCEPTED SOLUTION
jbocachica
Resolver II
Resolver II

Hola Abelardo, de acuerdo con el nombre de tu medida, asumo que hablas español.

 

Esto debe funcionar de forma nativa, sin embargo, quisiera validar contigo lo siguiente:

  1. El campo que estás utilizando en la medida es el mismo que estás utilizando en el slider?
  2. Lo que quieres es saber la fecha mas grande de ese rango de fechas?

De ser asi, estos son 3 ejemplos que puedes tener en cuenta.

 

  • Puedes seleccionar la fecha (La columna) y sobre esto seleccionar el tipo de agregacion.jbocachica_0-1621364667011.png

     

  • La segunda opcion es utilizar la formula LASTDATE
  • jbocachica_2-1621364735440.png

     

  • La tercera opcion es con el MAX que tu tienes y debe funcionar exactamente igual

jbocachica_3-1621364785866.png

 

Ejemplo

jbocachica_4-1621364815887.png

 

Adjunto el PBIX

https://iwco.blob.core.windows.net/jbocachica/Ejemplo maximo fechas.pbix 

 

 

John Bocachica
Senior BI Consultant
Information Workers
http://www.iwco.co

View solution in original post

4 REPLIES 4
jbocachica
Resolver II
Resolver II

Hola Abelardo, de acuerdo con el nombre de tu medida, asumo que hablas español.

 

Esto debe funcionar de forma nativa, sin embargo, quisiera validar contigo lo siguiente:

  1. El campo que estás utilizando en la medida es el mismo que estás utilizando en el slider?
  2. Lo que quieres es saber la fecha mas grande de ese rango de fechas?

De ser asi, estos son 3 ejemplos que puedes tener en cuenta.

 

  • Puedes seleccionar la fecha (La columna) y sobre esto seleccionar el tipo de agregacion.jbocachica_0-1621364667011.png

     

  • La segunda opcion es utilizar la formula LASTDATE
  • jbocachica_2-1621364735440.png

     

  • La tercera opcion es con el MAX que tu tienes y debe funcionar exactamente igual

jbocachica_3-1621364785866.png

 

Ejemplo

jbocachica_4-1621364815887.png

 

Adjunto el PBIX

https://iwco.blob.core.windows.net/jbocachica/Ejemplo maximo fechas.pbix 

 

 

John Bocachica
Senior BI Consultant
Information Workers
http://www.iwco.co

Correcto John, la segunda solución es la que estaba buscando, porque necesito ese valos para incluirla en otra medición.

 

Gracias, saludos,

Abelardo

FrankAT
Community Champion
Community Champion

Hi @Abevann ,

does the slicer get the dates from the same column as your measure Utimo dia?

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Hi Frank, correct, I want to use this value to calculate another value dinamically with the slicer... I'm using FIRSTDATE and seems to work better, but still working on it... thanks

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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