Upload
dong-hai-nguyen
View
9
Download
2
Embed Size (px)
DESCRIPTION
Design Studio Scorecard
Citation preview
17/6/2015 DesignStudioInnovationSeriesTopic4:Anat...|SCN
http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/04/30/designstudioinnovationseriestopic4anatomyofansdkscorecardcom 1/3
GettingStarted Newsletters Store
Products Services&Support AboutSCN Downloads
Industries Training&Education Partnership DeveloperCenter
LinesofBusiness UniversityAlliances Events&Webinars Innovation
LogOn JoinUsHi,Guest SearchtheCommunity
Activity Communications Actions
Browse
SAPBusinessObjectsDesignStudio
Tweet
IntroductionInmyblogpost MakingaCaseforaLargerSDKResultSet,IdescribedthescenarioofascorecardcomponentasarealworldexampleofsituationswherealargerresultsetmaybeneededforSDKcomponentsthancurrentlypermitted.Thisfollowonpostisinspiredby feedbackfrom JeroenvanderA.RatherthanreiteratingtheSDKresultsetlimitissue,theintenthereistofocusondesignconsiderationsfordevelopinganSDKscorecardcomponent.AlthoughascorecardcomponentisonthelatestDesignStudioRoadmap,IthoughtitcouldmakeforsomeinterestingdiscussiontoseehowwemightapproachimplementingthisasanSDKcomponent,sincesuchacomponentseemstobeacommonquestionandrequestontheSCN.IwillmakeadisclaimerthoughthatthispostwillnotconcludewithalinktoafullyfunctionalSDKscorecardcomponent(forgiveme ),sincethescopeisonlytoevaluatethedesignconsiderationsandengagethecommunityindiscussionandfeedbackassuch.SettingtheSceneRatherthanstartingcompletelyfromscratch,IcameacrossagoodexamplefromHighChartsthatcouldbeadaptedforreferencepurposes.IhaveeditedtheHighChartsexamplewithmyownsampledatasetasshownbelow:
Alivepreviewisavailablehereandforthosewholiketotinkerthecompletecodeishere.DesignConsiderationsInmyviewthemaindesignconsiderationishowtodefinethelayoutoftheresultsettocaterforthefollowingscorecardrequirements:1)ColumnswithasinglevalueInthescorecardaboveScheduledFlights(CY),DelayedFlights(CY)andAverageDelay(min)representexamplesofsuchcolumns.2)ColumnswithasparklinechartwhichspecifiesafixedsetofdimensionmembersInthescorecardabovetheDelayGroupsColumnChartisbasedon4DelayGroupsacrossthehorizontalaxis:Delay0to14mins,Delay15to29mins,Delay3044mins,Delay4559mins.3)ColumnswithasparklinechartwhichspecifiesadynamicsetofdimensionmembersInthescorecardabovetheDailyDelaysLineChartisbasedonupto31daysrepresentingeachdayofthemonth.Sohowdowebestrepresentthisintheunderlyingdatasourcedefinitionandinitialview?Twopossibilitiesareshownbelow:a)Eachdimensionmemberisdefinedasanindividualmeasureinthecolumns:
DesignStudioInnovationSeriesTopic4:AnatomyofanSDKScorecardComponentADesignDilemmaPostedbyMustafaBensaninSAPBusinessObjectsDesignStudioonApr30,20159:29:17AM
1Like
17/6/2015 DesignStudioInnovationSeriesTopic4:Anat...|SCN
http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/04/30/designstudioinnovationseriestopic4anatomyofansdkscorecardcom 2/3
AverageUserRating
(0ratings)
Tweet
Underthisapproachwewouldmapeachofthemeasurecolumnsintheresultsettothecorrespondingscorecardcolumnwithacolumnindex,eitherindividuallyorbyspecifyingarange.Ithasthebenefitofacompactresultset.NoissuesforthesinglevaluecolumnsortheDelayGroupsparklinecolumnchartwithasmallfixednumberofxaxisdimensionmembers.However,weneedtocreateindividualmeasuresforeachofthe31possibleindividualtimedimensionmembersfortheDailyDelaysLineChartcolumn,whichisnotatypicalapproach.Nowhowdowehandlethescenariowherethenumberofdaysinthemonthvariessothatthesparklinechartdisplayscorrectly?:i)Specifyan"Ignorezerosatend"optionbutthenhowdoweknowifthezerovalueisduetothedaynotexistingorgenuinelyhasazerovalue?Ormaybethisdistinctiondoesn'tmatterincontext?ii)Dynamicallyfilterouttheredundantdaymeasuresattheendbasedonthedaysinthemonth.b)Dimensionmembersarelistedinrowswithacorrespondingsinglemeasureinthecolumns:
Underthisapproach,sincethedimensionmembersarelistedintheresultsetrows,theissueofdynamicnumberofitemsfortheDailyDelaysLineChartistakencareofbutattheexpenseofasignificantlylargerresultset.Additionally,becausewehavemorethenonedimensionacrossthetwosparklinecharts(DelayGroupandDayofMonth),clientsideaggregationwouldberequiredforeachofthecharts,whichisnotidealassuchaggregationshouldpreferablybelefttotheOLAPengine.Sothere'ssomefoodforthought.I'dbeinterestedinanyfeedbackabouttheaboveoptionsandideasforanyotherpossibleapproaches.BlogSeriesIndex: DesignStudioInnovationSeriesWelcome
781Views Categories:SDK Tags:sapzen,business_objects_design_studio,design_studio,design_studio_sdk
1Like
17/6/2015 DesignStudioInnovationSeriesTopic4:Anat...|SCN
http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/04/30/designstudioinnovationseriestopic4anatomyofansdkscorecardcom 3/3
FollowSCNSiteIndex ContactUs SAPHelpPortalPrivacy TermsofUse LegalDisclosure Copyright
6Comments
Like(1)
IngoHilgefortApr30,20154:05PM
HelloMustafa,tosomedegreesitdependsontheresultsetandsomeproblemsyoucansolveintheresultsetandtheotherhalfdependsonhowgoodtheactualcomponentwasdesigned.Ascorecardispartofourupcomingreleaseaswellbasedontheexampleyoushowinghere(http://www.highcharts.com/demo/sparkline)andweareinthefinaltestingstagesalready.SoIwouldnotnecessarycallita"designdilemma".Inmostscenarioswewillseeyourfirstexamplebeingusedmyopinion.asmentionedthescorecardwillbetheresoon.regardsIngoHilgefort,VisualBI
Like(0)
MustafaBensanApr30,201511:52PM(inresponsetoIngoHilgefort)
HiIngo,Thanksforthefeedback.Iagreethatoption1isthebestapproachofthetwo,althoughIdon'treallyliketheideaofhavingtocreateindividualmeasuresforeachtimeperiodsincethisisnothowbackendqueriesaretypicallydesigned.Iguessit'sthemostappropriatecompromisefornowthough.Regards,Mustafa.
Like(1)
MichaelHowlesApr30,20155:41PM
Thiswillremainalocalprojectionand/orresultsetvolumedilemmawhereveracomponentneedstoshowmorethanonelevelofgranularityatthesametime.(Asyouhaveillustratedinyourexample.)Wecouldputthisdilemmatobedifcomponentssupportedmorethanonedatasource,inmyopinion.
Like(0)
MustafaBensanApr30,201511:38PM(inresponsetoMichaelHowles)
Agreed,Michael.Hopefullymultipledatasourceassignmentbecomessupportedinfuture.
Like(1)
JeroenvanderAApr30,20156:43PM
Himustafa,themainproblemisthatyougotbasicallyatwodimensionaltablethatneedstobetranslated.InBWwearrangedsomethingswithusingfilteredmeasures,currentperiod,budgetcurrentperiod+anxamountofpreviousperiodsforagraph.AsdiscussedearlierIusedd3.nesttoincludethehierarchicalstructure.bestoffcoursewouldbemultipledatasources.Oratablelikecomponentwhereyoucouldputseveraldifferenttypeofcomponentsineachfield.Eachcomponentcouldholdit'sowndatasource,butthetablewouldrenderarowforeachinstanceofadimensionandautomaticallypassesthatfiltertotheunderlyingcomponentskindaliketheforeachfeatureinD3.Jeroen
Like(0)
MustafaBensanApr30,201511:43PM(inresponsetoJeroenvanderA)
HiJeroen,That'sveryhelpfulfeedback,thanksverymuch.Withrespecttothe"xamountofpreviousperiodsforagraph",didyouhavetosettheseupasindividualmeasures(asperOption1above),orwereyouabletoachievethedesiredresultbasedonasinglemeasurecombinedwiththetimedimension(asperOption2)?Regards,Mustafa.