Forum Discussion
Crossjoins behaving unexpectedly
- 8 years ago
Found the solution. The problem is caused by a well known problem of comparing two floating point numbers. Both numbers need to be explicitly rounded to 2 digits for it to work. A night of sleep can do a lot of good. Thanks for responding!
Hi,
Why not simply use
=IF(calculate(SUM([Hours])<SELECTEDVALUE(MySlicer),1,0)
Hope this helps.
- SemG8 years agoAdvocate I
Hi,
Thanks for responding. Because the grand total evaluates to 0 if you just use IF. Also, I just checked an it had the same problem. Certain values that clearly need to get evaluated to 0 get evaluated to 1. Anyone?
- SemG8 years agoAdvocate I
Found the solution. The problem is caused by a well known problem of comparing two floating point numbers. Both numbers need to be explicitly rounded to 2 digits for it to work. A night of sleep can do a lot of good. Thanks for responding!
- v-chuncz-msft8 years agoCommunity Support