Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I am looking to do a LOOKUPVALUE but this a where clause.
I have 2 tables.
I want to look up the old pc name
PCS
EMAIL|ComputerName|Status
USERS
USERNAME|Email
So this lookup works fine
LOOKUPVALUE can have multiple searches
https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax
you can do the following
OLDPC = LOOKUPVALUE(PCS[ComputerName], PCS[Email], USERS[Email], PCS[Status], "OLD")
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |