Forum Discussion
Anonymous
6 years agoNot applicable
measure to look up multiple values from multiple colums
Hello All, Data model: Column 'Asset', 'vehicle type', 'KM.ID' are from the table "Asset" => "asset' is the unique value Column 'KMs' is from table "KM".. this table contains 'Date', 'KM.ID', ...
Anonymous
6 years agoNot applicable
Hi Greg_Deckler ,
Does the below table provides the clarification needed?
| Invoice Date | Invoice number | KM.ID | ASSET NAME | Amount | KM (current Display) | KM (What i want to display) |
| JAN - 2020 | J1 | 501 | 501 | $1000 | 1000 | 1000 |
| JAN - 2020 | J2 | 501 | 751A | $1000 | - | 1000 |
| JAN - 2020 | J3 | 501 | 751B | $1000 | - | 1000 |
Greg_Deckler
Community Champion
6 years agoAnonymous - Maybe, it's tough to say. So then in February all of the rows for February would display $2,000? If that is the case.
Column in Invoice table =
VAR __Asset = [ASSET NAME]
VAR __InvoiceDate = [INVOICE DATE]
VAR __KMID = LOOKUPVALUE('VEHICLE MASTER'[KM.ID],'VEHICLE MASTER'[ASSET NAME],__Asset)
RETURN
LOOKUPVALUE('KM FILE'[Column],'KM FILE'[KM.ID] = __KMID,'KM FILE'[Date], __InvoiceDate)
That's my best guess.