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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Encuentre el valor más reciente

Hai Guys Necesita tu ayuda,

Tengo una tabla (salario) que contiene datos salariales mensuales. Por ejemplo, este mes (6/4/2022) el salario es de 20k

El próximo mes es decir (6/5/2022) gerente revisó el salario que es de 30k

Quiero crear un dax y debería devolver el último salario.

Screenshot_2022-04-06-23-56-50-77_f90b96e7af3c5a594eb0c92de7fc5fe1.jpg

A partir de esta imagen quiero crear un dax para obtener el último valor salarial

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@AlanP514 ,

Puede probar el siguiente código: -

Measure =
CALCULATE (
    MAX ( 'Table (4)'[salary] ),
    FILTER ( ALL ( 'Table (4)' ), 'Table (4)'[month] = MAX ( 'Table (4)'[month] ) )
)

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@AlanP514 ,

Puede probar el siguiente código: -

Measure =
CALCULATE (
    MAX ( 'Table (4)'[salary] ),
    FILTER ( ALL ( 'Table (4)' ), 'Table (4)'[month] = MAX ( 'Table (4)'[month] ) )
)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors