Forum Discussion
CESARPULIDOGDL
Helper I
3 years agoLOOKVALUE NEAREST : Nearest value based on other columns values
Hi, i nees your help. I have 2 tables, the fist is the tableA: kardex of amount of a credit line (profiles of credit card limits): the second its tableB: de average purschase ...
- 3 years ago
You could create a column in TableB like
Credit Limit = VAR AvgPurchase = 'TableB'[Average purchase] VAR Result = CALCULATE ( MIN ( 'TableA'[Credit line amount] ), 'TableA'[Credit line amount] >= AvgPurchase ) RETURN Result
johnt75
Super User
3 years agoYou could create a column in TableB like
Credit Limit =
VAR AvgPurchase = 'TableB'[Average purchase]
VAR Result =
CALCULATE (
MIN ( 'TableA'[Credit line amount] ),
'TableA'[Credit line amount] >= AvgPurchase
)
RETURN
Result