Forum Discussion
Need Help with performing measure within "Measure"
Hi being_mohit16,
I'm still a practicianer in DAX. I'm having trouble following your inquiry (your question).
If you have two conditions that need to be met, instead of using IF, you can try SWITCH with AND. SWITCH for me is easier, but I have occasions when I still use IF.
Column Name =
SWITCH (
TRUE () ,
AND (
logic test 1 = "what your looking for",
logic test 2 = "what your looking for"
)
= TRUE(), result if true,
result if falseI
)
I tested the formula above on a data set I'm using and it worked. It looked like this:
- being_mohit167 years agoFrequent VisitorDAXRichArd
Thanks for suggestions, but i tried it is calculating measure for all the column thats Why results is not coming, so i used value () function to get identical column.- DAXRichArd7 years ago
Resolver I
Hello,
One more thought. DAX does not accept a table as a measure. If your DAX code results in what would end up being a talbe, if you write it as a measure you'll get an error. Nevertheless, you can use a table in a measure as a filter function that then aggregates the filter context.
Good luck.
RM