Create a variable which just represents the YEARMONTH portion of your date (i.e. FormatDate (,“YYYYMM”) ). Then you can use something like: =Count(FormatDate(,“YYYYMMDD”))
That should ignore the time portion and count the number of distinct dates. If you are, instead, asking how to determine how many days there are in the month (versus how many distinct days were returned), in oracle you can use something like: to_char(last_day( table.dateobjectcolumn ),‘DD’)
I want to calculate days in a date column. Not the days in a month.
I have date column(mostly working days). I need to count the working days in a particular month and year from the column.
Did the first half of my initial response not help in that regard?
When you say work days, are you looking to only count M-F days (business days), or just the distinct days that are returned? If the latter, then you should have all of the pieces to do so from both a data provider method:
count( distinct trunc( table.column))
And business objects desktop intelligence version: