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
Proud to be a Super User!
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.
Proud to be a Super User!
User | Count |
---|---|
357 | |
198 | |
68 | |
66 | |
48 |