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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Dax to lookup within range of values

hi,

i have a measure that compute a Factor value.

Now i need to compare this factor value to the ones in the table below to look up for over/under and adjust values.

eg: if my factor value is 1.063 then over/under value is -5% and adjust value is 0.78%

 

What is the best way to do this please? merge query or dax?

at the moment im using SWITCH in dax to write each value in the table but what if my table has hundreds of values then SWITCH is not possible.

Capture1.PNG

thanks in advance.

Regards,

ChimDen

3 REPLIES 3
Anonymous
Not applicable

Hi  @Anonymous ,

Why the under over change? What is based on? What is your desired output? A table or a measure? Where is 1.063? From another table?

 

Please provide more details.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

hi @Anonymous ,

These tables are given to us as is, there no formula in the table.

1.063 is between 1.061 and 1.065. 1.063 is a calculated value from another measure.

Anonymous
Not applicable

re-clarify the example.

eg: if my factor value is 1.063 then over/under value is -4% and adjust value is 0.33%

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.