SlideShare a Scribd company logo
Web Intelligence
         &
Crystal Reports
  ----------------
Processing and Context

        Dan Donarski
 Kolb+Co. Technology Advisers
Crystal Reporting Model
Suppose we want to create the following report


  Need to generate a running total for monthly sales that:
  ◦ Are greater than 25% of regions total monthly sales

  Need to also display :
  ◦ Pct Sum of all customer sales > 25% of groups totals




                           BO
Crystal Reporting Model
Report Layout –
  - Grouped by Region / Date / Customer
  - Summary of customer sales
         - By region

-   Formula to display value
    -  if sales > 25% of monthly total



    -   Running total of @Analysis



                           BO
Crystal Reporting Model
…but my RT Expert won’t show fields I need
  - @Analysis




                    BO
Crystal Reporting Model




      BO
             Because a “PrintTime” formula is “processed”
               after Running Totals….
Crystal Reporting Model
Create a formula as “PrintState”
)

    //@Pct of Sales (GF3 – Customer)
    //Set formula to be evaluated at PrintState pass
    WhilePrintingRecords ;
    //Perform calculation
    Sum({Orders.Order Amount}, {Customer.Customer Name})  
    % 
    Sum({Orders.Order Amount}, {Orders.Order Date}, "monthly")



    //@Analysis (GF3 – Customer)
    //Set formula to be evaluated at PrintState pass
    WhilePrintingRecords ;
    //Check to see if criteria met and if so perform calc
    if {@Pct of Sales} > 25 then 
       Sum({Orders.Order Amount}, {Customer.Customer})Name})
Crystal Reporting Model
//@Reset (Hidden in GH2 – Monthly)
//Set formula to be evaluated at PrintState pass
WhilePrintingRecords ;
//Reset the variable we'll use to hold our subtotal
Global CurrencyVar vTotal := 0 ;


//@Accumulate (Hidden in GF3 – Customer)
//Set formula to be evaluated at PrintState pass
WhilePrintingRecords ;
//Declare that we want to make reference to a variable
Global CurrencyVar vTotal ;
//Add to the existing value of the variable
vTotal := vTotal + {@Analysis}

//@Display (GF2 – Monthly)
//Set formula to be evaluated at PrintState pass
WhilePrintingRecords ;
//Display the current value
Global CurrencyVar vTotal ;



                            BO
Crystal Reporting Model

    …Final calculation now able to be performed



//@MonthPct (GF2 – Monthly)
//Declare that we want to make reference to a variable
WhilePrintingRecords ;
//Perform calculation
if {@Display} = 0 then 0 else
    {@Display} % Sum ({Orders.Order Amount}, {Orders.Order Date}, "monthly")




                                   BO
Web Intelligence Context
Aggregation
◦ Calculation of measures
     Three components
         Calculation Function
            Ex: Sum, Avg, Min, Max
         Input Context
            What goes into calculation
            Ex: Dimensions in block
         Output Context
            Where the aggregation is
            output
            Ex: Block Footer, Section,
            Body
                       BO
Web Intelligence Context
Default Aggregation

Calculation(Input Considerations)




        (Output location)



                    BO
Web Intelligence Context




   =Min([Sales revenue] ForAll ([Quarter] ; [Year])) In ([Year])
           BO

                        Input                         Output
Web Intelligence Context




   =Min([Sales revenue] ForEach ([Quarter] ; [Year])) In ([Year])
      BO

                       Input                         Output
Web Intelligence Context




   =Min([Sales revenue]) In ([Year])
                                                                 Output
   =Min([Sales revenue]) In ([Quarter])

   =Sum([Sales revenue]) In ([Year]) Where ([Year] = "2001")
   =Sum([Sales revenue]) In ([Year]) Where ([Year] = "2002")
   =Sum([Sales revenue]) In ([Year]) Where ([Year] = "2003")

   =Sum([Sales revenue]) In ([Year]) Where ([Year] InList("2001" ; "2002" ; "2003") )
Web Intelligence Context




           • Max Sales Revenue By Year
              =Max([Sales revenue] In ([State] ; [Year]))


           • Year of Max Sales Revenue
               =Max(If([Sales revenue] = Max([Sales revenue] 
                     ForEach ([Year])) In ([State]) ; ([Year]) ; 0) 
                     In ([State] ; [Year]))
Web Intelligence & Crystal Reports




          Dan Donarski
      ddonarski@kolbco.com

More Related Content

What's hot

Excel creating pivot table
Excel creating pivot tableExcel creating pivot table
Excel creating pivot table
samikshaa sinha
 
Print18
Print18Print18
Print18
Hassan Samoon
 
Activity Instructions: Short-Term Liquidity Analysis
Activity Instructions: Short-Term Liquidity AnalysisActivity Instructions: Short-Term Liquidity Analysis
Activity Instructions: Short-Term Liquidity Analysis
Anaparolo2
 
Activity Instructions: Short-Term Liquidity Analysis
Activity Instructions: Short-Term Liquidity AnalysisActivity Instructions: Short-Term Liquidity Analysis
Activity Instructions: Short-Term Liquidity Analysis
JarryMikols
 
SAP ISU : Budget Billing Basics
SAP ISU : Budget Billing BasicsSAP ISU : Budget Billing Basics
SAP ISU : Budget Billing Basics
Rakesh Dasgupta
 
Busn 278 midterm spring 2016
Busn 278 midterm   spring 2016Busn 278 midterm   spring 2016
Busn 278 midterm spring 2016
sergejsvolkovs10
 
Dervy bis-155-final-exam-guide-music-on-demand-new
Dervy bis-155-final-exam-guide-music-on-demand-newDervy bis-155-final-exam-guide-music-on-demand-new
Dervy bis-155-final-exam-guide-music-on-demand-new
individual484
 
Budget Billing : Payment Scheme
Budget Billing : Payment SchemeBudget Billing : Payment Scheme
Budget Billing : Payment Scheme
Rakesh Dasgupta
 
Excel 2016 | Module 3: SAM Project 1a Pick Up Motors
Excel 2016 | Module 3: SAM Project 1a Pick Up MotorsExcel 2016 | Module 3: SAM Project 1a Pick Up Motors
Excel 2016 | Module 3: SAM Project 1a Pick Up Motors
AlexHunetr
 
exploring_ecap_grader_c2_Transactions_LastFirst. solution
exploring_ecap_grader_c2_Transactions_LastFirst. solutionexploring_ecap_grader_c2_Transactions_LastFirst. solution
exploring_ecap_grader_c2_Transactions_LastFirst. solution
JackCandtona
 
Analysis by Dimensions online training
Analysis by Dimensions online training   Analysis by Dimensions online training
Analysis by Dimensions online training
Scroll Up
 
Kb11 N Manual Reposting Of Costs
Kb11 N Manual Reposting Of CostsKb11 N Manual Reposting Of Costs
Kb11 N Manual Reposting Of Costs
whocanbe1
 
Devry bis-155-final-exam-guide-new
Devry bis-155-final-exam-guide-newDevry bis-155-final-exam-guide-new
Devry bis-155-final-exam-guide-new
shyaminfo104
 
Scoring documentation
Scoring documentationScoring documentation
Scoring documentation
Fatima Khalid
 
Dervy bis-155-final-exam-guide-cool-clocks-inc-new
Dervy bis-155-final-exam-guide-cool-clocks-inc-newDervy bis-155-final-exam-guide-cool-clocks-inc-new
Dervy bis-155-final-exam-guide-cool-clocks-inc-new
individual484
 
Devry bis 155 final exam guide
Devry bis 155 final exam guideDevry bis 155 final exam guide
Devry bis 155 final exam guide
uopassignment
 
Excel 2013 Chapter 8: SAM Project 1a Precision Guitars WORKING WITH PIVOTTABL...
Excel 2013 Chapter 8: SAM Project 1a Precision Guitars WORKING WITH PIVOTTABL...Excel 2013 Chapter 8: SAM Project 1a Precision Guitars WORKING WITH PIVOTTABL...
Excel 2013 Chapter 8: SAM Project 1a Precision Guitars WORKING WITH PIVOTTABL...
AlexHunetr
 
Devry bis-155-final-exam-guide
Devry bis-155-final-exam-guideDevry bis-155-final-exam-guide
Devry bis-155-final-exam-guide
shyaminfo104
 
BIS 155 Education Specialist / snaptutorial.com
BIS 155  Education Specialist / snaptutorial.comBIS 155  Education Specialist / snaptutorial.com
BIS 155 Education Specialist / snaptutorial.com
McdonaldRyan131
 

What's hot (19)

Excel creating pivot table
Excel creating pivot tableExcel creating pivot table
Excel creating pivot table
 
Print18
Print18Print18
Print18
 
Activity Instructions: Short-Term Liquidity Analysis
Activity Instructions: Short-Term Liquidity AnalysisActivity Instructions: Short-Term Liquidity Analysis
Activity Instructions: Short-Term Liquidity Analysis
 
Activity Instructions: Short-Term Liquidity Analysis
Activity Instructions: Short-Term Liquidity AnalysisActivity Instructions: Short-Term Liquidity Analysis
Activity Instructions: Short-Term Liquidity Analysis
 
SAP ISU : Budget Billing Basics
SAP ISU : Budget Billing BasicsSAP ISU : Budget Billing Basics
SAP ISU : Budget Billing Basics
 
Busn 278 midterm spring 2016
Busn 278 midterm   spring 2016Busn 278 midterm   spring 2016
Busn 278 midterm spring 2016
 
Dervy bis-155-final-exam-guide-music-on-demand-new
Dervy bis-155-final-exam-guide-music-on-demand-newDervy bis-155-final-exam-guide-music-on-demand-new
Dervy bis-155-final-exam-guide-music-on-demand-new
 
Budget Billing : Payment Scheme
Budget Billing : Payment SchemeBudget Billing : Payment Scheme
Budget Billing : Payment Scheme
 
Excel 2016 | Module 3: SAM Project 1a Pick Up Motors
Excel 2016 | Module 3: SAM Project 1a Pick Up MotorsExcel 2016 | Module 3: SAM Project 1a Pick Up Motors
Excel 2016 | Module 3: SAM Project 1a Pick Up Motors
 
exploring_ecap_grader_c2_Transactions_LastFirst. solution
exploring_ecap_grader_c2_Transactions_LastFirst. solutionexploring_ecap_grader_c2_Transactions_LastFirst. solution
exploring_ecap_grader_c2_Transactions_LastFirst. solution
 
Analysis by Dimensions online training
Analysis by Dimensions online training   Analysis by Dimensions online training
Analysis by Dimensions online training
 
Kb11 N Manual Reposting Of Costs
Kb11 N Manual Reposting Of CostsKb11 N Manual Reposting Of Costs
Kb11 N Manual Reposting Of Costs
 
Devry bis-155-final-exam-guide-new
Devry bis-155-final-exam-guide-newDevry bis-155-final-exam-guide-new
Devry bis-155-final-exam-guide-new
 
Scoring documentation
Scoring documentationScoring documentation
Scoring documentation
 
Dervy bis-155-final-exam-guide-cool-clocks-inc-new
Dervy bis-155-final-exam-guide-cool-clocks-inc-newDervy bis-155-final-exam-guide-cool-clocks-inc-new
Dervy bis-155-final-exam-guide-cool-clocks-inc-new
 
Devry bis 155 final exam guide
Devry bis 155 final exam guideDevry bis 155 final exam guide
Devry bis 155 final exam guide
 
Excel 2013 Chapter 8: SAM Project 1a Precision Guitars WORKING WITH PIVOTTABL...
Excel 2013 Chapter 8: SAM Project 1a Precision Guitars WORKING WITH PIVOTTABL...Excel 2013 Chapter 8: SAM Project 1a Precision Guitars WORKING WITH PIVOTTABL...
Excel 2013 Chapter 8: SAM Project 1a Precision Guitars WORKING WITH PIVOTTABL...
 
Devry bis-155-final-exam-guide
Devry bis-155-final-exam-guideDevry bis-155-final-exam-guide
Devry bis-155-final-exam-guide
 
BIS 155 Education Specialist / snaptutorial.com
BIS 155  Education Specialist / snaptutorial.comBIS 155  Education Specialist / snaptutorial.com
BIS 155 Education Specialist / snaptutorial.com
 

Similar to Reporting Tips

on SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfon SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdf
formaxekochi
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
eileensauer
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
eileensauer
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
Chris Seebacher
 
Chris Seebacher Portfolio
Chris Seebacher PortfolioChris Seebacher Portfolio
Chris Seebacher Portfolio
guest3ea163
 
Intro to Financial Modeling - EI
Intro to Financial Modeling - EIIntro to Financial Modeling - EI
Intro to Financial Modeling - EI
Martin Zych
 
Reporting with Bullhorn Canvas: A 360 Degree View - Ben Carter
Reporting with Bullhorn Canvas: A 360 Degree View - Ben CarterReporting with Bullhorn Canvas: A 360 Degree View - Ben Carter
Reporting with Bullhorn Canvas: A 360 Degree View - Ben Carter
Jeremy Ott
 
Parallel Settlement Clinic - Input Data - Settlement-Invoicing
Parallel Settlement Clinic - Input Data - Settlement-Invoicing Parallel Settlement Clinic - Input Data - Settlement-Invoicing
Parallel Settlement Clinic - Input Data - Settlement-Invoicing
eSett
 
Apache Spark Side of Funnels
Apache Spark Side of FunnelsApache Spark Side of Funnels
Apache Spark Side of Funnels
Databricks
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
CzechDreamin
 
Einführung in mdx
Einführung in mdxEinführung in mdx
Einführung in mdx
Digicomp Academy AG
 
Rough cut connect2-xyz
Rough cut connect2-xyzRough cut connect2-xyz
Rough cut connect2-xyz
Brij Consulting, LLC
 
Project report aditi paul1
Project report aditi paul1Project report aditi paul1
Project report aditi paul1
guest9529cb
 
Marcus Matthews
Marcus MatthewsMarcus Matthews
Marcus Matthews
MarcusMatthews38
 
Document splitting in New GL in SAP
Document splitting in New GL in SAPDocument splitting in New GL in SAP
Document splitting in New GL in SAP
Rajesh Shanbhag
 
Build-a-modelStarting with this partial model, which contains fina.docx
Build-a-modelStarting with this partial model, which contains fina.docxBuild-a-modelStarting with this partial model, which contains fina.docx
Build-a-modelStarting with this partial model, which contains fina.docx
richardnorman90310
 
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...
Cengage Learning
 
SQL Server 2008 Portfolio
SQL Server 2008 PortfolioSQL Server 2008 Portfolio
SQL Server 2008 Portfolio
anthonyfeliciano
 
LivaBudget & LivaClick (Best Business Solutions CPM & BI)
LivaBudget & LivaClick (Best Business Solutions CPM & BI)LivaBudget & LivaClick (Best Business Solutions CPM & BI)
LivaBudget & LivaClick (Best Business Solutions CPM & BI)
DataLiva Bilişim Hizmetleri
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson Portfolio
Kbengt521
 

Similar to Reporting Tips (20)

on SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfon SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdf
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
 
Chris Seebacher Portfolio
Chris Seebacher PortfolioChris Seebacher Portfolio
Chris Seebacher Portfolio
 
Intro to Financial Modeling - EI
Intro to Financial Modeling - EIIntro to Financial Modeling - EI
Intro to Financial Modeling - EI
 
Reporting with Bullhorn Canvas: A 360 Degree View - Ben Carter
Reporting with Bullhorn Canvas: A 360 Degree View - Ben CarterReporting with Bullhorn Canvas: A 360 Degree View - Ben Carter
Reporting with Bullhorn Canvas: A 360 Degree View - Ben Carter
 
Parallel Settlement Clinic - Input Data - Settlement-Invoicing
Parallel Settlement Clinic - Input Data - Settlement-Invoicing Parallel Settlement Clinic - Input Data - Settlement-Invoicing
Parallel Settlement Clinic - Input Data - Settlement-Invoicing
 
Apache Spark Side of Funnels
Apache Spark Side of FunnelsApache Spark Side of Funnels
Apache Spark Side of Funnels
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Einführung in mdx
Einführung in mdxEinführung in mdx
Einführung in mdx
 
Rough cut connect2-xyz
Rough cut connect2-xyzRough cut connect2-xyz
Rough cut connect2-xyz
 
Project report aditi paul1
Project report aditi paul1Project report aditi paul1
Project report aditi paul1
 
Marcus Matthews
Marcus MatthewsMarcus Matthews
Marcus Matthews
 
Document splitting in New GL in SAP
Document splitting in New GL in SAPDocument splitting in New GL in SAP
Document splitting in New GL in SAP
 
Build-a-modelStarting with this partial model, which contains fina.docx
Build-a-modelStarting with this partial model, which contains fina.docxBuild-a-modelStarting with this partial model, which contains fina.docx
Build-a-modelStarting with this partial model, which contains fina.docx
 
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...
 
SQL Server 2008 Portfolio
SQL Server 2008 PortfolioSQL Server 2008 Portfolio
SQL Server 2008 Portfolio
 
LivaBudget & LivaClick (Best Business Solutions CPM & BI)
LivaBudget & LivaClick (Best Business Solutions CPM & BI)LivaBudget & LivaClick (Best Business Solutions CPM & BI)
LivaBudget & LivaClick (Best Business Solutions CPM & BI)
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson Portfolio
 

Reporting Tips

  • 1. Web Intelligence & Crystal Reports ---------------- Processing and Context Dan Donarski Kolb+Co. Technology Advisers
  • 2. Crystal Reporting Model Suppose we want to create the following report Need to generate a running total for monthly sales that: ◦ Are greater than 25% of regions total monthly sales Need to also display : ◦ Pct Sum of all customer sales > 25% of groups totals BO
  • 3. Crystal Reporting Model Report Layout – - Grouped by Region / Date / Customer - Summary of customer sales - By region - Formula to display value - if sales > 25% of monthly total - Running total of @Analysis BO
  • 4. Crystal Reporting Model …but my RT Expert won’t show fields I need - @Analysis BO
  • 5. Crystal Reporting Model BO Because a “PrintTime” formula is “processed” after Running Totals….
  • 6. Crystal Reporting Model Create a formula as “PrintState” ) //@Pct of Sales (GF3 – Customer) //Set formula to be evaluated at PrintState pass WhilePrintingRecords ; //Perform calculation Sum({Orders.Order Amount}, {Customer.Customer Name})   %  Sum({Orders.Order Amount}, {Orders.Order Date}, "monthly") //@Analysis (GF3 – Customer) //Set formula to be evaluated at PrintState pass WhilePrintingRecords ; //Check to see if criteria met and if so perform calc if {@Pct of Sales} > 25 then  Sum({Orders.Order Amount}, {Customer.Customer})Name})
  • 7. Crystal Reporting Model //@Reset (Hidden in GH2 – Monthly) //Set formula to be evaluated at PrintState pass WhilePrintingRecords ; //Reset the variable we'll use to hold our subtotal Global CurrencyVar vTotal := 0 ; //@Accumulate (Hidden in GF3 – Customer) //Set formula to be evaluated at PrintState pass WhilePrintingRecords ; //Declare that we want to make reference to a variable Global CurrencyVar vTotal ; //Add to the existing value of the variable vTotal := vTotal + {@Analysis} //@Display (GF2 – Monthly) //Set formula to be evaluated at PrintState pass WhilePrintingRecords ; //Display the current value Global CurrencyVar vTotal ; BO
  • 8. Crystal Reporting Model …Final calculation now able to be performed //@MonthPct (GF2 – Monthly) //Declare that we want to make reference to a variable WhilePrintingRecords ; //Perform calculation if {@Display} = 0 then 0 else {@Display} % Sum ({Orders.Order Amount}, {Orders.Order Date}, "monthly") BO
  • 9. Web Intelligence Context Aggregation ◦ Calculation of measures Three components Calculation Function Ex: Sum, Avg, Min, Max Input Context What goes into calculation Ex: Dimensions in block Output Context Where the aggregation is output Ex: Block Footer, Section, Body BO
  • 10. Web Intelligence Context Default Aggregation Calculation(Input Considerations) (Output location) BO
  • 11. Web Intelligence Context =Min([Sales revenue] ForAll ([Quarter] ; [Year])) In ([Year]) BO Input Output
  • 12. Web Intelligence Context =Min([Sales revenue] ForEach ([Quarter] ; [Year])) In ([Year]) BO Input Output
  • 13. Web Intelligence Context =Min([Sales revenue]) In ([Year]) Output =Min([Sales revenue]) In ([Quarter]) =Sum([Sales revenue]) In ([Year]) Where ([Year] = "2001") =Sum([Sales revenue]) In ([Year]) Where ([Year] = "2002") =Sum([Sales revenue]) In ([Year]) Where ([Year] = "2003") =Sum([Sales revenue]) In ([Year]) Where ([Year] InList("2001" ; "2002" ; "2003") )
  • 14. Web Intelligence Context • Max Sales Revenue By Year =Max([Sales revenue] In ([State] ; [Year])) • Year of Max Sales Revenue =Max(If([Sales revenue] = Max([Sales revenue]  ForEach ([Year])) In ([State]) ; ([Year]) ; 0)  In ([State] ; [Year]))
  • 15. Web Intelligence & Crystal Reports Dan Donarski ddonarski@kolbco.com