Forum Discussion
Switch function breaking my chart
Yup, that worked. But why was my original measure causing multiple values? I want to better understand how this function works. Thanks!
Hi More_BI,
The VALUES formula returns a list of values( see link with explanation) so you when you use it to return a single value to your visuals it will give you the error you have, since in the DAX measure the context of the measures are import for the final results, usually values is used in the filters or to sum other values.
Regards,
MFelix
- More_BI9 years agoFrequent Visitor
Interesting... that makes sense. So the values function overrrides the switch function, is that correct?
If I understand the switch function, it should return one value.
How is the max function working here? Does it only get one result back from the switch and therefore will always be the right value?