Forum Discussion
Column give incorrect result
- Anonymous2 years ago
Hi kennylch ,
Thanks Idrissshatila , Ronald123 and SamInogic for the quick reply. I have some other thoughts to add:
Since your parameter in SWITCH is a measure, and you create a calculated column, the result is unexpected. Measures are dynamic, and they're contextually influenced, so the results of the measure you see in the visual may not match the results of the measure that it's in a calculated column. So we need to create a measure:Measure Healthy Level = SWITCH( True(), [Healthy]>5, "Above Healthy", [Healthy]>0, "Healthy Level", "Unhealthy Level" )Then set the filter in the filter pane.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello kennylch ,
you're using in the dax the net qty and in the validation you're using another column.
the measure is correct, but if you want to compare the healthy column then you should include it in the dax instead of Net Qty.
Hi. Thanks for point out. i have accidentally change the formula to netqty before send out. You may try to point to healthy. It gives incorrect result as well
You may refer to the attached photo. As you can see i update the formula point to "heathy" column. The Heathy Level text column still doesnt display the correct text