Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I am trying to calculate a measure where it has separate calculations for Friday and Sunday using Switch. I am using weekday() to separate Friday and Sunday. But, it is throwing the above mentioned error.
Solved! Go to Solution.
Replacing "<> OR(5,7)" with " <> 5 || 7" has resolved the issue
@ziyabikram96 , seem like at some place int is getting compared with text
For work date related stuff check if this blog -https://community.powerbi.com/t5/Community-Blog/Travelling-Across-Workdays-Decoding-Date-and-Calenda...
or video
can help
Replacing "<> OR(5,7)" with " <> 5 || 7" has resolved the issue
@ziyabikram96 - It's hard to read your DAX, could you paste as text and replace the things you don't want us to see with placeholders/different names? I've seen this happen if you actually true to compare an integer with a boolean but also I've seen it when there is some kind of flaw in DAX/logic. But, very difficult to read.
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |