Forum Discussion
TODAY function
- 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 () ) ) )
v-jiascu-msft: Can you help me solve this. I have a DAX formula for the current year MTD. Trying to get a DAX formula for Last Year MTD of Same Month. Example Dec 2018 vs Dec 2017. Thanks
These are my fields in my Data Set. I am trying to avoid filters on the report.
Order Date
Year
Month
Location
Units Sold
1. I want to extract Units Sold Month To Date of Current Year based on Order Date
2. I want to extract Units Sold Month To Date (Last Year) based on the Order Date
Want to compare Units Sold Month To Date of Current Month and Last Year Month To Date of the Same Month using DAX formula. Trying to avoid filters on the report
Example December 2018 vs December 2017
Thanks for your help
Thanks
Hi sureshsonti,
I would suggest you create a new post in this forum with a sample that can be copied or downloaded. It's a new topic.
Best Regards,
Dale