Forum Discussion

derekmac's avatar
derekmac
Icon for Helper I rankHelper I
3 years ago

DAX Look Up Value

Hi All

I have picked up another persons report and come across the below Code, would someone be able to give me a brief indication of what this code is doing? Not seen the LOOKUPVALUE function used before 😞

Resourced EDV by Association = 
IF (
    'placements'[Role] = "Resourcer",
    IF (
        LOOKUPVALUE (
            'placements'[UserID],
            'placements'[PlacementID], 'placements'[PlacementID],
            'placements'[Role], "Deliverer"
        ) = 'placements'[UserID],
        0,
        LOOKUPVALUE (
            'placements'[EDV split],
            'placements'[PlacementID], 'placements'[PlacementID],
            'placements'[Role], "Deliverer"
        )
    )
)

3 Replies