Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Formula to generate financial periods

$
0
0

Hello,

Does anyone have a clever formula to work out the financial period as a calculated field in Report Builder? I have one for week numbers and wondering if there is something similar for periods too. We work on a 4,4,5 week cycle (I've been told it's financial but may be wrong) so period 1 is 4 weeks, week no 1-4, period 2 is 4 weeks, week no 5-8 and period 3 is 5 weeks, week no 9-13.

My week formula looks like: -

="Week" + format(Datepart(Dateinterval.weekofyear,Fields!JournalCreatedDate.Value,FirstDayOfWeek.Sunday,FirstWeekOfYear.FirstFullWeek)).ToString()

Also if there is a way to get the year displayed (something like 2013P1) that would be amazing!

Thanks

Suzi


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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