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 ,
can you please point out what are the invalid results, because as per your measure, the result is correct.
hi.You are right. The measure number "Healthy" is correct with the calculation. But if you notice the PART : 00-200-1485. third row in the screenshot. Heathy is 0.76. It should be fall under "Unhealthy Level" in the healthy level column given the formula below. But it show "Above Healthy" instead.
- Ronald1232 years ago
Resolver III
Hello kennylch ,
In the meassure you check the value [Net Qty].
You refer to the value 0.76 wich is the measure [Healthy].
Greets,
Ronald- kennylch2 years ago
Helper I
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
- Idrissshatila2 years ago
Super User
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.
- kennylch2 years ago
Helper I
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