Forum Discussion

Da_Roon's avatar
Da_Roon
New Member
3 years ago
Solved

Select category based on comparing a value to multiple values in an other table

Hello everybody,

 

after a few days of trying and struggling I hope someone here can help me with the following issue:

 

In one of my tables I have a percentage, which is displayed in a decimal number.

 

In another table I have like 5 categories + percentages (also in decimal number format) for the beginning and ending of the specific range for the category. It looks like this:

 

CategoryStart of categoryEnd of category
A0.91
B0.50.9
C0.250.5
D00.25
E 0

 

I would like to compare my calculated value to the start and end values and based on the range where my calculated value falls in, select the category.

 

I'm using DAX for this and my tables aren't related to eachother.

 

I hope this case is clear enough and someone can help me.

5 Replies