Forum Discussion
Measure with DateAdd returns NaN
- 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
Anonymous , If [price] is a column, then try changing the dax to
ValuePrevMonth = (CALCULATE(sum('Table'[Price]), DATEADD('Table'[Date],-1, MONTH)))
Thank you
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?
- ChiragGarg25122 years ago
Solution Sage
Anonymous , can some sample data for 10 to 12 rows be provided in tabular form. There shouldn't be a need to create a new column.