Forum Discussion
Help on DAX
- 6 years ago
Hi,
The AND() function takes 2 inputs. Only when both inputs evaluate to TRUE will the AND() function also evaluate to TRUE. So if the Age of the invoice is >= min value and also <= max value, then it means that the Age of invoice falls between the min and ma values. The AND() function will therefore evaluate to TRUE. To convert TRUE to 1, one can multiply with 1.
Hope this clarifies.
Hi!
You can simplified this by creating a calculated column in your "items" table.
Create the calculated column with the next dax formula in your "items" table:
- admin_xlsior6 years agoPost Prodigy
Hi,
Sorry, I forgot to tell, I also need the range to be from a table. And what I know is I need to use CALCULATE to do that, however there is another stopper, I cannot use CALCULATE since I'm using Direct Query.
So that is the background story why I create a measure. (CALCULATE is not allowed for CalculatedColumn)
Thanks,