Forum Discussion
problem with dates and evaluating a formula
hi
i have created a new column and Im doing some checks with date fields....
for some reason they don't seem to work. I'm tryind to identify records that were created either the 6th or 7th Dec 2016. the date format is european i.e. day/month/year
i have created the following but it doesnt work.
Column = if(or('opportunities'[Created].[Date]=6/12/2016 ;'opportunities'[Created].[Date]=7/12/2016);"found";"not found")
I suspect that time might have to do something with it but I can't tell which comes to my new problem. How can I evaluate the formula much like excel to see which part of the formula fails what is compared to what in order to debug it?
thanks
C
Hi Anonymous,
Have you tried compare 'opportunities'[Created].[Date] with Date(Value(YearString),value(MonthString),value(DayString))
5 Replies
- tringuyenminh92Memorable Member
Hi Anonymous,
Have you tried compare 'opportunities'[Created].[Date] with Date(Value(YearString),value(MonthString),value(DayString))
- AnonymousNot applicable
yeap... that seemed to have worked...
Column = if(or('opportunities'[Created].[Date]=DATE(2016;12;6) ;'opportunities'[Created].[Date]=DATE(2016;12;7));"found";"not found")
funny though because when I compared with a dd/mm/year format,it didn't seem to complain..
is there a way that I can set by step calculate a formula like excel to see what the formula does?
- tringuyenminh92Memorable Member
I'm sorry but I don't know how excel behaves. Could you please show me some information or pictures with description for your expectation?