Forum Discussion
DateAdd function in column not working
- 8 years ago
Hi anandav,
This is a question of context, if you remove the previous month from your table view it will give you the calculation you need.
Be aware that the measure are very sensitive in terms of context and if you don't place a certain column in your measure, when you add that measure with that column the value will be off.
Regards,
MFelix
Hi MFelix,
That is exactly what I am strugling with - I have used DateAdd in Prev Month Sale2 and it is just giving me blank. Whether I do it as a column or measure it is blank.
Since you are using a dates table with a relationship to the sales date in the DATEADD function you should use the dates table column and not the column from the sales table.
In my tests with your data I didn't made a date table that's why ot worked whit that column.
Regards,
MFelix
- anandav8 years agoSkilled Sharer
Hi MFelix,
I have uploaded the pbix file here.
I am not using Date table and still it does not work. Could you please check the file to see what I am doing wrong?
Thank you for your patience regarding this problem.
- MFelix8 years agoSuper User
Hi anandav,
This is a question of context, if you remove the previous month from your table view it will give you the calculation you need.
Be aware that the measure are very sensitive in terms of context and if you don't place a certain column in your measure, when you add that measure with that column the value will be off.
Regards,
MFelix