Forum Discussion
sureshsonti
Helper II
8 years agoTODAY function
Hello, I have a table with Order Date and Scheduled Qty. I created a measure to display today's orders using the TODAY function in DAX. But after 7 PM the report shows tomorrow's orders. Please ...
- 8 years ago
Hi sureshsonti,
The Service uses UTC time. Maybe you can try the formula below.
Yardage = IF ( UTCNOW () = NOW (), CALCULATE ( SUM ( YORX[Qty] ), FILTER ( 'YORX', 'YORX'[order_date] = DATEVALUE ( UTCNOW () + TIME ( 5, 0, 0 ) ) ) ), CALCULATE ( SUM ( YORX[Qty] ), FILTER ( 'YORX', 'YORX'[order_date] = TODAY () ) ) )
alexei7
Continued Contributor
8 years agoHi sureshsonti,
That is odd - are you able to share the data model so that we can investigate? If the model contains sensitive data maybe you could remove it?
Thanks
Alex
sureshsonti
Helper II
8 years agoNo I am still searching the web to find a solution. The below website may have a solution. But I dont know much about DAX.
http://radacad.com/solving-dax-time-zone-issue-in-power-bi