Forum Discussion
Anonymous
2 years agoNot applicable
Measure with DateAdd returns NaN
Hi there, I`m struggling with the measure dateAdd which delivers NaN, which I don´t understand. The value in the table which I am searching for looks like this: The measure which I am using ...
- 2 years ago
Anonymous , if there is only price and valueprevmonth, there is no way of distinction. For each product the valueprevMonth will be different. If delivery name is added to table visual, the measure will look like this
ChiragGarg2512
Solution Sage
2 years agoAnonymous , If [price] is a column, then try changing the dax to
ValuePrevMonth = (CALCULATE(sum('Table'[Price]), DATEADD('Table'[Date],-1, MONTH)))
Thank you
- Anonymous2 years agoNot applicable
Thanks, but price is already a measure with sum(table[price]), my fault, I should have added this as information.
- ChiragGarg25122 years ago
Solution Sage
Anonymous , Check the data type of date column. The dax seems to work fine
- Anonymous2 years agoNot applicable
ChiragGarg2512 The data type of the column is already from kind date. I´m wondering if I need an index or sth like that?