Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: previous month

$
0
0

Hello Will,

 

Here's an approach

 

Create two Dimensions

[FirstDayOfLastMonth] =RelativeDate(RelativeDate(CurrentDate();-DayNumberOfMonth(CurrentDate()));-DayNumberOfMonth(RelativeDate(CurrentDate();-DayNumberOfMonth(CurrentDate())-1)))


[LastDayOfLastmonth] =RelativeDate(CurrentDate();-DayNumberOfMonth(CurrentDate()))


Then finally [VarYesNo]=If [DateObject] Between([FirstDayOfLastMonth];[LastDayOfLastmonth]) Then "Yes" Else "No"


Regards

Niraj


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>