Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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]
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |