• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Lookup value from table with no relationship

Hi,

I need help in power bi to lookup a value from another table with no relationship to the model. I want to lookup the value in column "Bokført verdi (IB)" in the table "AvdelingDim" for the criteria "Fartøy" and "Type". In the sheet "OversiktPP" i have used excel formula to get the desires result (range I4:I7), but i want to accomplish this through powerbi measure.

Kindly Regards
Lars Ole
 

Attachments

  • 2020.06.11_Anleggskartotek 2020 05-PowerBI-Help lookup from table with no relationship.xlsx
    731 KB · Views: 2
Something like below.

Code:
Bokført verdi IB :=
LOOKUPVALUE (
    AvdelingDim[Bokført verdi (IB)],
    AvdelingDim[Fartøy], FIRSTNONBLANK ( VALUES ( Aktivadata[Fartøy] ), 1 ),
    AvdelingDim[Type], FIRSTNONBLANK ( VALUES ( Aktivadata[Type] ), 1 )
)
 
Back
Top