Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Blkbrum35
Regular Visitor

Look Up Table

Hi All,

 

I am new to Power BI.... I am in need of your assistance. I have a table that I am trying to vlookup against in order to pick up the LOS Band where there is a match against a LOS field. So, where the LOS is greater than 2 it should still show "1-5" in the field.

 

LOSLOS Band
1< 1
51-5
106-10
1511-15
2016-20
2521-25
3026-30
3531-35
4036-40
41> 40

 

Thanks in advance...

 

Dee

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Blkbrum35

 

I'm still not quite clear about your question. If you want to get the LOS Band, you can directly add a calculated column with SWITCH() function to specify each "bucket". 

 

 

=
SWITCH (
    TRUE (),
    Table[LOS] < 1, "<1",
    Table[LOS] >= 1
        && Table[LOS] < 5, "1-5",
    ...
)

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Blkbrum35

 

I'm still not quite clear about your question. If you want to get the LOS Band, you can directly add a calculated column with SWITCH() function to specify each "bucket". 

 

 

=
SWITCH (
    TRUE (),
    Table[LOS] < 1, "<1",
    Table[LOS] >= 1
        && Table[LOS] < 5, "1-5",
    ...
)

Regards,

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.