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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Lazurens
Frequent Visitor

Get Rows with last change with the date

Hello everyone, 

 

I have a table containing for value  
Category AB have value 34 at date 23/03/2023 and the days after it has another value 45
I need to get the last value with the last date

CategoryValueDate
AB4524/03/2023

My try partially works :

 

Masterdata LastChange = SUMMARIZE('Masterdata',
'Masterdata'[FAMILLE_PRODUCTION], 
"Cadence Opérationnelle", CALCULATE(MAX('Masterdata'[CADENCE_OPERATIONNELLE]),
'Masterdata'[DERNIER_CHANGE] = MAX('Masterdata cadences ligne'[DERNIER_CHANGE])))

 

When I add the date column I get all the rows without the filter

Lazurens_0-1680510018346.png

Can any one help me add the [DERNIER_CHANGE]

Thanks in advance 🙂

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Lazurens 
Please try

Masterdata LastChange =
SUMMARIZE (
    'Masterdata',
    'Masterdata'[FAMILLE_PRODUCTION],
    "Cadence Opérationnelle",
        CALCULATE (
            MAX ( 'Masterdata'[CADENCE_OPERATIONNELLE] ),
            'Masterdata'[DERNIER_CHANGE] = MAX ( 'Masterdata'[DERNIER_CHANGE] )
        ),
    "Dernier Change", MAX ( 'Masterdata'[DERNIER_CHANGE] )
)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Lazurens 
Please try

Masterdata LastChange =
SUMMARIZE (
    'Masterdata',
    'Masterdata'[FAMILLE_PRODUCTION],
    "Cadence Opérationnelle",
        CALCULATE (
            MAX ( 'Masterdata'[CADENCE_OPERATIONNELLE] ),
            'Masterdata'[DERNIER_CHANGE] = MAX ( 'Masterdata'[DERNIER_CHANGE] )
        ),
    "Dernier Change", MAX ( 'Masterdata'[DERNIER_CHANGE] )
)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.