Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Solved! Go to Solution.
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
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
User | Count |
---|---|
25 | |
11 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |