Forum Discussion
Filter a Calculated Measure using a Dax formula
Thanks for your reply ... Yes, you are correct, In this case though the return value is multiple values, not a single one
So you are trying to return more than one value from CALCULATE? You can't. But you can use CALCULATETABLE - but only inside another measure. At the end, a measure can only return a scalar value.
- JosephOutlaw9 years agoFrequent Visitor
Ok, thats what I thought. I was also looking at using a variable. Are we able to use a Variable with the Calculate function?
Similar to what I have below or will this too only accept a scalar value? Thanks for your help.
Var XXX = (ReturnValue,Multilple records)
Return
CALCULATE( XXX),FPA_PARENT_USAGE_REVENUE[Exclude] = BLANK(),FPA_USAGE_REVENUE[LE_Version] = "2.0")
- mattbrice9 years agoSolution Sage
JosephOutlaw wrote:Ok, thats what I thought. I was also looking at using a variable. Are we able to use a Variable with the Calculate function?
Similar to what I have below or will this too only accept a scalar value? Thanks for your help.
Var XXX = (ReturnValue,Multilple records)
Return
CALCULATE( XXX),FPA_PARENT_USAGE_REVENUE[Exclude] = BLANK(),FPA_USAGE_REVENUE[LE_Version] = "2.0")
Yes, Variables can hold the result of measure and also can hold the results of a table expression. But just splitting up the formula using variables is not going to change what CALCULATE can do. CALCULATE can only return a single value.
So I am just not clear on what you are trying to do. It is best if you post some sample data and the results you are wanting.