Forum Discussion
Error showing for date column
- 7 years ago
Thanks!
So looking at this, where are you trying to calculate 002? If it's in a table like the one in your first post, it should work every time. If you're trying to create a card or other visual that shows 002 without specifying a row, it would give an error unless you filter down to a single month.
Right now, your 002 IF statement reads like "If every date in the date column plus one month is after Apr 30, then do X, else Y"
If you change it to this, it will select the EOmonth from the current context instead of trying to use the entire column:002=IF(DATEADD(SELECTEDVALUE(Query4[EOMONTH]),1,MONTH)> DATE(2019,04,30),0,Query4[0001]-Query4[CC])
Thank you for the response
Thanks!
So looking at this, where are you trying to calculate 002? If it's in a table like the one in your first post, it should work every time. If you're trying to create a card or other visual that shows 002 without specifying a row, it would give an error unless you filter down to a single month.
Right now, your 002 IF statement reads like "If every date in the date column plus one month is after Apr 30, then do X, else Y"
If you change it to this, it will select the EOmonth from the current context instead of trying to use the entire column:
002=IF(DATEADD(SELECTEDVALUE(Query4[EOMONTH]),1,MONTH)> DATE(2019,04,30),0,Query4[0001]-Query4[CC])