0% found this document useful (0 votes)
342 views3 pages

Creating MTD YTD Report in Webi 4

mtd sap bw

Uploaded by

prabhath k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
342 views3 pages

Creating MTD YTD Report in Webi 4

mtd sap bw

Uploaded by

prabhath k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

12/11/2017 Creating MTD YTD report in webi 4

Register | Login

Not endorsed by or affiliated with


SAP

Follow BOB on Twitter! (Opens a new window)

Index | About Sponsors | Contact Us | Calendar | FAQ | Rules and Guidelines | Privacy Policy | Search

General Notice: No events within the next 45 days.

Search this topic... | Search Web Intelligence... | Search Box


Creating MTD YTD report in webi 4

Register or Login to Post Forum Index -> Building Reports -> Web Intelligence

Author Message

Mohd Posted: Thu Mar 21, 2013 9:08 am


Senior Member Post subject: Creating MTD YTD report in webi 4

Hello All,

I have been working on a report and I need to built MTD & YTD objects in report only.

Joined: 23 Nov 2010 I have measures and dimensions from universe.

Posts: 88
i need 4 queries 2 for Curr fiscal yr MTD & prior fiscal yr MTD
2 for Curr fiscal yr YTD & prior fiscal yr YTD

how to design the query filters which to achieve this.

Thanks a lot !

Nyusa

Back to top

mikca Posted: Fri Mar 22, 2013 1:47 am


Forum Associate Post subject: Re: Creating MTD YTD report in webi 4

You really only need 1 query that returns all values from start of previous financial year to end of current month
My universes have values To_Char(Some date, 'YYYY/MM') to give me months

Prompt 1 - Enter start of previous financial year


Joined: 16 Dec 2005 Prompt 2 - Enter current month

In your report you determine start of previous fin year and current month with function UserResponse
Posts: 595
Location: Alice Springs You calculate current month previous fin year = Current month Yr -1
And start of current year = Start prev year + 1

Create a variable Column code like


if ([Month] = [Current month]; 1;
if( [Month] = [Start curr fin yr]; 2;
if( [Month] = [Start prev fin yr]; 3;
if( [Month] = [Prev year curr month]; 4;
5
)))))

Then you can do calculations like


No. episodes curr month =
Count( [Episode no]) where ( [Column code] = 1)

No. episodes Curr month prev year =


Count( [Episode no]) where ( [Column code] = 4)

http://www.forumtopics.com/busobj/viewtopic.php?p=939679&sid=9bee370c4e8ef061b5367e32089aaf05 1/3
12/11/2017 Creating MTD YTD report in webi 4

and so on.

If I get time on Monday I can send a whole lot more but I did fully describe this the year before last: search for
column code or similar.

Mick

Back to top

Mohd Posted: Fri Mar 22, 2013 11:09 am


Senior Member Post subject: Re: Creating MTD YTD report in webi 4

Thank You very much Mikca, I will definitely try from here it would be great if you Can you please send me the
complete description for future reference and hope many can benifit.
Regards,
Nyusa
Joined: 23 Nov 2010

Posts: 88

Back to top

mikca Posted: Sun Mar 24, 2013 9:07 pm


Forum Associate Post subject: Re: Creating MTD YTD report in webi 4

{ Here are a set of variables that I use to manage variance and actual reporting. The query returns all rows from
start of previous year to end of current month - both are chosen by user. Only assumption is that a year contains 12
months, as a result this will work for calendar and any financial year. }

Joined: 16 Dec 2005


**************************************************** Start Dimensions
****************************************************
Posts: 595
Location: Alice Springs [Start previous year (yyyy/mm)]
= UserResponse( [Inpatients Q]; "Choose start of previous year")

[Current month this year (yyyy/mm)]


= UserResponse( [Inpatients Q]; "Choose current month for report")

[Start current year (yyyy/mm)]


= FormatNumber( ToNumber( Substr( [Start previous year (yyyy/mm)]; 1; 4) ) + 1 ; "####")
+
Substr( [Start previous year (yyyy/mm)]; 5; 3)

[Current month previous year (yyyy/mm)]


= FormatNumber( ToNumber( Substr( [Current month this year (yyyy/mm)]; 1;4) ) - 1; "####")
+
Substr( [Current month this year (yyyy/mm)]; 5; 3 )

' Month is a field returned from database as To_Char(Admission_Date, 'yyyy/mm') */

[Column code]
= If( [Month] = [Current month this year (yyyy/mm)]; 1;
If( [Month] = [Current month previous year (yyyy/mm)]; 2;
If( [Month] Between ([Start current year (yyyy/mm)]; [Current month this year (yyyy/mm)] ); 3;
If( [Month] Between ([Start previous year (yyyy/mm)]; [Current month previous year (yyyy/mm)] ); 4;
5 ))))

'**************************************************** End Dimensions


****************************************************

'**************************************************** Start Measures


****************************************************
{ Start Actuals }

http://www.forumtopics.com/busobj/viewtopic.php?p=939679&sid=9bee370c4e8ef061b5367e32089aaf05 2/3
12/11/2017 Creating MTD YTD report in webi 4

[ED Episode Current Month]


= Sum( [Occasions of Service] ) Where ( [Column code] = 1 )

[ED Episode current month previous year]


= Sum( [Occasions of Service] ) Where ( [Column code] = 2 )

[ED Episode Current Year]


= Sum( [Occasions of Service] ) Where ( ( [Column code] = 3) Or [Column code] = 1)

[ED Episode Previous Year]


= Sum( [Occasions of Service] ) Where ( ( [Column code] = 4) Or ( [Column code] = 2 ))

' End Actuals

' Start Variances

[ED Episode YTD change]


=[ED Episode Current Year] - [ED Episode Previous Year]

[ED Episode % change]


=[ED Episode YTD change] / [ED Episode Previous Year]

' Start Variances

'**************************************************** End Measures


****************************************************

Back to top

Display posts from previous: All Posts Oldest First Go

Register or Login to Post Forum Index -> Building Reports -> Web Intelligence

Page 1 of 1 All times are GMT - 5 Hours

Select a search Go Jump to: • Web Intelligence Go

Index | About | FAQ | RAG | Privacy | Search | Register | Login

Follow @BOB_Board 703 followers


Get community updates via Twitter:

BI Reporting Tools Training - 15% Off -Use Coupon Code ID15


The Best BI Reporting Tools in One Place to Become a Complete BI Professional!
intellipaat.com/BI+Tools/Training

Not endorsed by or affiliated with SAP


Powered by phpBB © phpBB Group Hosted by ForumTopics.com | Terms of Service
Generated in 0.2914 seconds using 14 queries. (SQL 0.0027 Parse 0.2805 Other 0.0082) phpBB Customizations by the phpBBDoctor.com
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 Shameless plug for MomentsOfLight.com

http://www.forumtopics.com/busobj/viewtopic.php?p=939679&sid=9bee370c4e8ef061b5367e32089aaf05 3/3

You might also like