So I have been trying to change the range of the number data type. I changed it manually at first, but as you can see with the table below, the hardwares don’t have the same limit.
I tried using this:
IF([_THISROW].[Hardware] = “Hardware#1”,
ANY(SELECT(Hardware Discount[Minimum], [Hardware] = [_THISROW].[Hardware])),
ANY(SELECT(Hardware Discount[Maximum], [Hardware] = [_THISROW].[Hardware])))
But I keep getting “The expression is valid but its result type ‘Number’ is not one of the expected types: Yes/No, List”
I feel like even if I was not getting that error message, it would still not work.
Hello @Quentinlebg, i’m guessing you have a table where you want to input your hardware discounts, using a reference to a hardware discount table, if that’s the case please try this expression in your valid_if() field in your discount column.
I tried using your expression, but it didn’t work. It said it couldn’t find the column
Well, it’s not going to be an exact fit, i have no idea how your column structure looks like, you have to change the [Hardware_REF] to the actual column that works as a reference to your discounts table, and that is IF that reference exists hehe
If you’re looking for an exact answer you’re gonna have to share more information about your data structure
I have no idea on which column of your Quotes table you’re gonna type in your desired discount, but you can use this expression on its valid_if() expression: