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
CESGUT
Regular Visitor

Extraer el ultimo valos de una tabla

Capture.PNG

 

Saludos,

 

Tengo una Tabla con fecha y valores numerico, y necesito extraer el valor numerico de una tabla a la ultima fecha, es decir, necesito extraer el dato remarcado en azul a l aultima fecha reportada.

 

Saludos

1 ACCEPTED SOLUTION

Hi @CESGUT ,

Based on your image, it seems that you missed a ")" after Max function.

Untitled.png

In addition, please check if you created it as a  measure.

For reference, you could use this tool to check if you have syntax error for dax expression.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @CESGUT ,

I'm not familar with your language, here is my translation via Google tranlate.

Spoiler
I have a Table with date and numeric values, and I need to extract the numerical value from a table to the last date, that is, I need to extract the data highlighted in blue at the last reported date.

If I undersand your requirement correctly that you want to get the value in the third column for the last date?

If so, you could create the measure with the formula below.

value of last date = CALCULATE(MAX('Table1'[Column3]),FILTER('Table1','Table1'[Date]=MAX('Table1'[Date])))

Here is the output.

Capture.PNG

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Cherry,

 

I tried your formula but didnt work, find below the error....error.PNG

Hi @CESGUT ,

Based on your image, it seems that you missed a ")" after Max function.

Untitled.png

In addition, please check if you created it as a  measure.

For reference, you could use this tool to check if you have syntax error for dax expression.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Cherry,

 

Thanks for your response.

Yes, that is exactly what I am looking for. The last value at the last date.

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.