Forum Discussion
Calculate difference between 2 dates and show a certain result
- 2 years ago
Hi Anonymous
Could you try some troubleshooting steps:
Delete the Switch statement below RETURN, and instead try returning some of the variables, starting with "scenario", and see at what point is the measure broken. Check for the variables called DelOnTime, DelLate, DelEarly, etc..., if you get the expected result.
Try to make calculated column instead of measure and see if that works.
If you can provide a snapshot of your source data, that would help me in understanding the possible cause as well.
Hi Anonymous
Could you try some troubleshooting steps:
Delete the Switch statement below RETURN, and instead try returning some of the variables, starting with "scenario", and see at what point is the measure broken. Check for the variables called DelOnTime, DelLate, DelEarly, etc..., if you get the expected result.
Try to make calculated column instead of measure and see if that works.
If you can provide a snapshot of your source data, that would help me in understanding the possible cause as well.
Hi dk_dk,
Thanks again for your suggestions and for supporting me with this issue. I tried the other alternative you suggested and I can confirm that the measure works perfectly now.
Thanks again.