Forum Discussion
inconsistent weekend weekday DAX calculated value
- 9 years ago
Hi handrianto,
I notice that the date place in the table visual is [PickUpTimeLocal], while the GetWeekDay = WEEKDAY([DropOffTimeLocal].[Date],2).
And I also find there are records [PickUpTimeLocal] date is not equal to the [DropOffTimeLocal] date. As you compare the [PickUpTimeLocal] date with the weekday value from the [DropOffTimeLocal], the result you get is expected.
Best Regards,
Qiuyun Yu
Hi handrianto,
I notice that the date place in the table visual is [PickUpTimeLocal], while the GetWeekDay = WEEKDAY([DropOffTimeLocal].[Date],2).
And I also find there are records [PickUpTimeLocal] date is not equal to the [DropOffTimeLocal] date. As you compare the [PickUpTimeLocal] date with the weekday value from the [DropOffTimeLocal], the result you get is expected.
Best Regards,
Qiuyun Yu
Ah.. How can I do such silly mistake.. I copy paste the DAX from other BI report and forgot to change the column reference from droptime into pickuptime. didn't catch that for 2 days.
Thank you very much for your help Quiyu..