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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PowerBITestingG
Resolver I
Resolver I

Fill column with lookup minimum value

Hi all

 

I have the following table:

Companycreated dateoriginal datecreated bycreated by fix
Google11johnjohn
Google21kimjohn
Google31dumjohn
Amazon44tomtom
Amazon54jamestom
Amazon64jerrytom

 

I am trying to obtain that "created by fix" column. Which is basically where created date = original date then use created by

 

any ideas?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PowerBITestingG ,

 

I suggest you to create a calculated column by this code.

Create by fix =
CALCULATE (
    MAX ( 'Table'[created by] ),
    FILTER (
        ALLEXCEPT ( 'Table', 'Table'[Company] ),
        'Table'[created date] = 'Table'[original date]
    )
)

Result is as below.

RicoZhou_0-1656990989001.png

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @PowerBITestingG ,

 

I suggest you to create a calculated column by this code.

Create by fix =
CALCULATE (
    MAX ( 'Table'[created by] ),
    FILTER (
        ALLEXCEPT ( 'Table', 'Table'[Company] ),
        'Table'[created date] = 'Table'[original date]
    )
)

Result is as below.

RicoZhou_0-1656990989001.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

jdbuchanan71
Super User
Super User

@PowerBITestingG 

Give this measure a try.  You would add it as a calculated column.

Created by fix = 
VAR _CreatedDate =
    CALCULATE (
        MIN ( 'Table'[created date] ),
        ALLEXCEPT ( 'Table', 'Table'[Company] )
    )
RETURN
    CALCULATE (
        MIN ( 'Table'[created by] ),
        'Table'[created date] = _CreatedDate,
        ALLEXCEPT ( 'Table', 'Table'[Company] )
    )

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.