Forum Discussion
Previous Days Orders
parry2k this is the error that comes up
Error Message:
MdxScript(Model) (63, 5) Calculation error in measure '_Alert Measures'[_Daily Calls Total]:
DAX comparison operations do not support comparing values of type Date with values of type Text.
Consider using the VALUE or FORMAT function to convert one of the values.
elenton seems lke you have date dimension in your model, if yes then update measure
Prev day sales = CALCULATE ( SUM( Table[Sales] ), PREVIOUSDAY( Date[Date] ) )
- elenton7 years ago
Helper II
parry2k Thats not bring back any data but i will have a play around with that approach see if i can get it working thanks
- parry2k7 years ago
Super User
elenton logically it should work if you have date dimension. May be there is any filter or something which is makign it not to work. Please reach out if you still need help.
- elenton7 years ago
Helper II
parry2k ive got it working now thanks, it is definalty a formatting issue which i will play with to see if i can get a better fix, but for now i just created another column in my date dimension that is just a date field and used today-1 to go back one day which looks to have worked.