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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Ayuda para obtener el último valor en una tabla para una etiqueta determinada

Hola

Soy nuevo en Power BI y estoy haciendo un conjunto de datos ficticio en Excel. He hecho un tablero que ya puede mostrar sólo ciertas etiquetas basadas en la habitación o el sistema, pero quiero hacer un medidor radial que muestra el valor actual, o más reciente de lo que se selecciona, pero estoy luchando para encontrar una manera de tirar del último valor. Cualquier ayuda sería apreciado!

Gracias

Esta es una muestra de la tabla

HabitaciónDíaHoraValor
Habitación 1Centrífuga 16/13/20 12:00 AM605
Habitación 1Centrífuga 16/13/20 9:00 AM917
Habitación 1Centrífuga 16/13/20 12:00 PM667
Habitación 1Centrífuga 16/14/20 12:00 AM671
Habitación 2BMS 47736/13/20 12:00 AM888
Habitación 2BMS 47736/13/20 9:00 AM803
Habitación 2BMS 47736/13/20 12:00 PM541
Habitación 2BMS 47736/14/20 12:00 AM733
1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hola @chiggins

Prueba esto

Measure = 
VAR __lastDateTime =
    CALCULATE(
        MAX( 'Table'[International DateTime] ),
        ALL( 'Table' ),
        VALUES( 'Table'[Room] ), 
        VALUES( 'Table'[Tag] )
    )
RETURN 
    CALCULATE(
        SUM( 'Table'[Value] ),
        KEEPFILTERS( 'Table'[International DateTime] = __lastDateTime )
    )

resultará en

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

image.png

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hola @chiggins

Prueba esto

Measure = 
VAR __lastDateTime =
    CALCULATE(
        MAX( 'Table'[International DateTime] ),
        ALL( 'Table' ),
        VALUES( 'Table'[Room] ), 
        VALUES( 'Table'[Tag] )
    )
RETURN 
    CALCULATE(
        SUM( 'Table'[Value] ),
        KEEPFILTERS( 'Table'[International DateTime] = __lastDateTime )
    )

resultará en

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

image.png

Anonymous
Not applicable

Eso funcionó perfectamente. Gracias por la ayuda @Mariusz !

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.