Forum Discussion
CESARPULIDOGDL
3 years agoHelper I
LOOKVALUE 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 by customer.
i need the nearest value beetween purchases cust. & profiles, in order to have a credit limit by cust (nearest up).
thank u.
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
2 Replies
- johnt75Super User
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 - CESARPULIDOGDLHelper I
johnt75 Thank you so much. It's work's!! 😁