Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
programming4us
Windows 7

Microsoft Visio 2010 : Working with Data - Creating Reports (part 2) - Grouping and Totaling Items in a Report

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
3/20/2014 2:58:17 AM

2. Grouping and Totaling Items in a Report

You’ve just created a nice inventory of the light bulb shapes in your drawing and their associated data, but the report would be more informative if it grouped like items and showed totals. It would also be nice to make it portable, so that you can use it in other drawings.


Grouping Items in Reports
1.
Continue working with Ch7 Shape Data.vsd.

2.
Right-click the report shape that you created on the Basic Report page, and choose Update Report.

3.
Select Light Bulb Power Use from the list and then click Modify.

4.
Click Next twice until you see the Subtotals button and then click it. The Subtotals screen appears.

5.
Choose Group By: Bulb Type so that like bulb types are listed together in the report.

6.
Click OK, then Next, Finish, and Run to run the modified report. The report now has all bulbs grouped together by type, sorted alphabetically.

7.
Save the drawing.


Adding Subtotals to Reports
1.
Continue working with the Ch7 Shape Data.vsd drawing, and the report shape on the Basic Reports page.

2.
Return to the Subtotals screen, as you did in steps 2, 3, and 4 of the previous exercise.

3.
In the Subtotals list, check COUNT in the Bulb Type row, and check COUNT and TOTAL in the Power row, as shown in Figure 3.



Figure 3. Reports can be ordered using grouping, as well as subtotals.

4.
Click OK, then Next, Finish, and Run to run the modified report. You now see counts and totals, in addition to items grouped together. Figure 3 shows this version of the reporting shape on the right.

The report is starting to look really useful, but it is still long. You can get rid of duplicate entries by adding a quantity column to the report.

5.
Right-click the report shape and return to the Subtotals screen, as you’ve done before.

6.
Click Options. The Options dialog appears.

7.
Check Don’t Repeat Identical Values.

8.
Check Exclude Duplicate Rows in Group.

9.
Check Show Grand Totals.

10.
Click OK, then OK, Next, Finish and Run to execute the modified report. Figure 4 shows an example. Notice the Quantity column that enables duplicate items to be tallied in single rows.

Figure 4. The report modified to show grand totals and not display duplicate values. Note the Quantity column appears to make up for suppressed duplicate values.


11.
Save the drawing.

Storing a Report Definition in a Report Shape
1.
Continue working with the Ch7 Shape Data.vsd drawing and the report shape on the Basic Reports page.

2.
Right-click the report shape and choose Update Report.

3.
Under Save Report With, check Copy of Report Definition this time.

This saves the modified definition of the report in the report shape itself. You can copy the report to other drawings, and the report definition comes along. You can even add the report to stencils in your Favorites and have them ready in an instant.

4.
Click Run to rerun the report. The report looks identical to the last time you ran it.

5.
Right-click the report shape and choose Update Report again. In the Update Report screen, notice the new entry in the list: “Definition Stored in Shape.” This is a result of the change you made in step 2.

Any changes you make to this report will be stored only in the report shape. The shape becomes the sole container of the report definition, and you won’t see it in the list of reports when you click the Shape Reports button on the Review tab.

6.
Save the drawing.

So far you’ve made heavy use of the options behind the Subtotal button. On the same screen as Subtotal, you also find the Sort and Format buttons. If you need to control the number of decimal places shown in a report, click the Format button. Behind the Sort button, you find more sorting options that you might want to investigate.

Other -----------------
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 5) - Shape Data Labels versus Names
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 4) - Displaying Shape Data in Shape Text
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 3) - Saving Sets of Shape Data Fields
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 2) - Choosing Shape Data Field Types , Creating Lists and Controlling Formatting
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 1) - Adding Simple Data Fields
- Microsoft Visio 2010 : Working with Data - Introducing Shape Data Fields
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 7)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 6)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 5)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 4)
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Trailers Game
- The Banner Saga 2 [PS4/XOne/PC] PC Launch Trailer
- Welkin Road [PC] Early Access Trailer
- 7th Dragon III Code: VFD [3DS] Character Creation Trailer
- Human: Fall Flat [PS4/XOne/PC] Coming Soon Trailer
- Battlefleet Gothic: Armada [PC] Eldar Trailer
- Neon Chrome [PS4/XOne/PC] PC Release Date Trailer
- Rocketbirds 2: Evolution [Vita/PS4] Launch Trailer
- Battleborn [PS4/XOne/PC] 12 Min Gameplay Trailer
- 7 Days to Die [PS4/XOne/PC] Console Trailer
- Total War: Warhammer [PC] The Empire vs Chaos Warriors Gameplay Trailer
- Umbrella Corps [PS4/PC] Mercenary Customization Trailer
- Niten [PC] Debut Trailer
- Stellaris [PC] Aiming for the Stars - Dev. Diary Trailer #1
- LawBreakers [PC] Dev Diary #4: Concept Art Evolutions
programming4us programming4us
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
programming4us
Natural Miscarriage
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer