Forum Discussion
ThusiHettigama
4 years agoRegular Visitor
Current Month Working days calculation
My objective is to calculate the number of working days up until yesterday for the current month. The below measure is working in the Desktop version. However, once it is published not calculating i...
- 4 years ago
Greg_Deckler
Community Champion
4 years agoThusiHettigama Maybe try UTCTODAY instead of TODAY?
- ThusiHettigama4 years agoRegular Visitor
Greg, Thanks for suggesting a solution for my issue. However after using UTCTODAY function, the issue is still occuring
- Greg_Deckler4 years ago
Community Champion
ThusiHettigama Hmm, try placing a simple measure like Measure = TODAY() into a Card visualization and see if you get a different value based upon the Desktop or the Service. Wondering if you need to do some kind of TZ conversion.
- ThusiHettigama4 years agoRegular Visitor
Measure = DAY(UTCTODAY()-1) is working in the Desktop version and the Service. However when I add COUNTROWS to calculate number of working days from first day of the current month to DAY(UTCTODAY()-1) it's breaking in the Service (published version)