Forum Discussion
CA
9 years agoFrequent Visitor
Inconsistency with DateTime and accepted Operators?
I'm new to PowerBI and PowerQuery so this problem I've run into is really confusing me. What I'm trying to do is get a count of tickets created within the last 14 days and eventually plot the amount ...
- 9 years ago
With the second formula, you omitted DateTime.Date. It should be:
if [CreatedDate] > Date.AddDays(DateTime.Date(DateTime.LocalNow()), -14) then "1" else "0"
MarcelBeug
9 years agoCommunity Champion
With the second formula, you omitted DateTime.Date. It should be:
if [CreatedDate] > Date.AddDays(DateTime.Date(DateTime.LocalNow()), -14) then "1" else "0"
- CA9 years agoFrequent Visitor
Thank you SO much, this was killing me! I mulled over and over the syntax for an embarrassingly long time...
Thanks again!