Forum Discussion
mork
Helper V
10 years agoCreate column with true/false for previous month
Hello, I have a column with dates in the following format: d/m/yyyy How can I create a calculated column that has as values true for every entry that is on the previous month and false for t...
ankitpatira
Community Champion
10 years agomork This should work for you however in your dateColumn you will only need date that is not greater than today.
NewColumn = IF( DATEDIFF('YOURTABLE'[dateColumn],TODAY(),DAY) <= 30, "Yes", "No")
- mork10 years ago
Helper V
Unfortunately that's is not what I want. Your formula is about the previous 30 days and not about the previous month. So for example today is the 13th of May. The data that I will see won't be the data of the previous month but will be the data of the last 30 days. Meaning half of April and half of May.