Reply
tomybre
New Member

Ultimo valor de la tabla

PBI.jpg

 

Como hago para que en la pantalla negra me aparezca el ultimo valor de la tabla?

 

Saludos.

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@tomybre

 

Hi you can use a measure:

 

 

PriceLastDate =
IF (
    HASONEVALUE ( Table1[Currency] );
    CALCULATE ( AVERAGE ( Table1[Price] ); LASTDATE ( Table1[Date] ) );
    UNICHAR ( 10 )
)

 

Select in the slicer the currency and Ready.

 

Regards

Victor

Lima - Peru




Lima - Peru

View solution in original post

6 REPLIES 6
CESGUT
Regular Visitor

Saludos a todos,

Tengo un problema que puede ser sencillo pero no tengo mucha pericia en estas herramientas.

Estoy intentando calcular el ultimo valor de una tabla a la ultima fecha.

Capture.PNG

 

Necesito el valor encerrado en azul a la ultima fecha que tenga en la tabla

 

Saludos.


 

Vvelarde
Community Champion
Community Champion

@tomybre

 

Please be more specific about this.

 

Regards

 

Victor

 




Lima - Peru

Victor, I have a table with date - currency - price . I want to have a measure that tells me which is the price of the last date on the table.

Vvelarde
Community Champion
Community Champion

@tomybre

 

Hi you can use a measure:

 

 

PriceLastDate =
IF (
    HASONEVALUE ( Table1[Currency] );
    CALCULATE ( AVERAGE ( Table1[Price] ); LASTDATE ( Table1[Date] ) );
    UNICHAR ( 10 )
)

 

Select in the slicer the currency and Ready.

 

Regards

Victor

Lima - Peru




Lima - Peru

Thank you very much for your answer but when I tried the measure, this appear:

Screenshot_1.png

 

 

How can I solve it?

Vvelarde
Community Champion
Community Champion

@tomybre

 

You need to close the Average Function. You are missing a ")"




Lima - Peru
avatar user

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)