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.
Hello, (from France)
The first table contains X rows with a column of values
Value |
100 |
1000 |
5000 |
12000 |
The second table has Four columns
Minimum value | Max value | Minimum scale | Max scale |
0 | 3000 | 20 | 60 |
3001 | 6000 | 40 | 80 |
6001 | 10000 | 200 | 300 |
10000 | 350 |
*10000 and more
I would like to add a column to my first table which gives me the minimum applicable scale
Value | scale |
100 | 20 |
1000 | 20 |
5000 | 40 |
12000 | 350 |
A big thank you for your help
Philippe
Solved! Go to Solution.
Hello @PhilippeM,
You can use the FILTER function to perform this lookup:
scale =
VAR CurrentValue = 'Table1'[Value]
RETURN
MINX(
FILTER(
'Table2',
CurrentValue >= 'Table2'[Minimum value] &&
(CurrentValue <= 'Table2'[Max value] || ISBLANK('Table2'[Max value]))
),
'Table2'[Minimum scale]
)
Hello @PhilippeM,
You can use the FILTER function to perform this lookup:
scale =
VAR CurrentValue = 'Table1'[Value]
RETURN
MINX(
FILTER(
'Table2',
CurrentValue >= 'Table2'[Minimum value] &&
(CurrentValue <= 'Table2'[Max value] || ISBLANK('Table2'[Max value]))
),
'Table2'[Minimum scale]
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |