Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a column of values (called "WPM") in Table A.
Table B has upper and lower limits with a corresponding category/rank values:
Rank | Lower Limit | Upper Limit |
1 | 0 | 5 |
2 | 6 | 10 |
3 | 11 | 15 |
4 | 16 | 24 |
5 | 26 | 1000 |
I want to create a column in Table A that assigns the "Rank" Value to the WPM based on the value of WPM and where it falls within the 2 limits. I could do it with a bunch of if/switch statements, but if the upper and lower limits change, it's more work to change the if/switch statements - mainly because there are 5 more columns like WPM that need the same treatment.
Please advise - thanks!
Solved! Go to Solution.
Hi @gogrizz
try
New Colum =
CONCATENATEX ( TableB, IF ( TableA[WPM] >= TableB[Lower Limit] && TableA[WPM] < TableB[Upper Limit], TableB[Rank] ) )
@gogrizz
Add the following column in Table A, this is dynamic.
Rank Result =
VAR __V = 'Table A'[Value]
RETURN
MAXX(
FILTER(
'Table B',
__V <= 'Table B'[Upper Limit] &&
__V >= 'Table B'[Lower Limit]
),
'Table B'[Rank]
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Both work - thanks team!
@gogrizz
Add the following column in Table A, this is dynamic.
Rank Result =
VAR __V = 'Table A'[Value]
RETURN
MAXX(
FILTER(
'Table B',
__V <= 'Table B'[Upper Limit] &&
__V >= 'Table B'[Lower Limit]
),
'Table B'[Rank]
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @gogrizz
try
New Colum =
CONCATENATEX ( TableB, IF ( TableA[WPM] >= TableB[Lower Limit] && TableA[WPM] < TableB[Upper Limit], TableB[Rank] ) )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |