Forum Discussion
Anonymous
7 years agoNot applicable
DAX Help - Measure to find difference
Community, I am having difficulty writing DAX to find the differnce between various test results. Seamed simple. Any help on the topic is apperciated. Below is example data and what I would lik...
- 7 years ago
After looking at Anonymous , using the LOOKUPVALUE() function makes more sense
Dif2 = VAR vCurrentTestIDtoRef = 'Table1 (2)'[Test ID to Ref] VAR vCurrentTestMap = 'Table1 (2)'[Test Map] VAR vRefNum = LOOKUPVALUE ( 'Table1 (2)'[Data_Col], 'Table1 (2)'[Test ID], vCurrentTestIDtoRef, 'Table1 (2)'[Test Map], vCurrentTestMap ) RETURN 'Table1 (2)'[Data_Col] - vRefNum
Geradav
7 years agoResponsive Resident
After looking at Anonymous , using the LOOKUPVALUE() function makes more sense
Dif2 =
VAR vCurrentTestIDtoRef = 'Table1 (2)'[Test ID to Ref]
VAR vCurrentTestMap = 'Table1 (2)'[Test Map]
VAR vRefNum =
LOOKUPVALUE (
'Table1 (2)'[Data_Col],
'Table1 (2)'[Test ID], vCurrentTestIDtoRef,
'Table1 (2)'[Test Map], vCurrentTestMap
)
RETURN
'Table1 (2)'[Data_Col] - vRefNumAnonymous
7 years agoNot applicable