...
A graphical dashboard | Individual pages with data: | User definable filters: |
---|---|---|
Getting Started
...
Proceed to the Data section of CommCareHQ.
Select Excel Dashboard on the left-hand side.
See this Data Export Overview page forSee https://dimagi.atlassian.net/wiki/x/5SbKfw for details on creating the data export:
Name your export
Choose Automatically convert dates for Excel
Be sure to rename your Display columns to how you want them to display in your reports.
Save the export.
...
Step 2: Copy the Web Address of your saved export
...
In Excel, Create a New File.
You will have a blank Excel file now.
Go to a blank tab in your workbook. Rename that sheet "Raw Data".
Select the top-left cell (A1).
Now we will pull in the data from the Excel file
Choose the Data menu
Choose From Web in the "Get External Data" section (NOTE: If you are getting issues when trying to import data to the web, you may want to use From Web (Legacy) instead of the standard From Web. Please see Alternative Web Data Access Method for Step 3, below)
Be sure you have Copy link address from step 2 above so it is on your clipboard.
The "New Web Query" window appears.
In the "Address" bar at the top, Paste the link you address you copied in Step 2 above. It should be something like "https://www.commcarehq.org/a/excelreportingdemo/reports/export/saved/download/96c41fd6fb9be6119ad32467254cbc9a/"
Click Go
The "Windows Security" window appears. Type your CommCareHQ username and password. If you are using two factor authentication, review the custom instructions in the box below. If you do not use two factor authentication, proceed to step 13.
Info icon false title Special Instructions for Users with Two-Factor Authentication This box is only for accounts with two factor authentication enabled. If you do not use two factor authentication, proceed to (13) below.
- Click the "Advanced" radio button. The URL supplied from step 10 should remain in the URL field.
- Under the "HTTP request header parameters (optional)" field, add "Authorization". NOTE: This is not a value found from the dropdown options.
- For the field next to this header, type "ApiKey <username>:<API_KEY>". For example, if your username is "JohnDoe@google.com", and your API Key is 12345, the field should look like: "ApiKey JohnDoe@google.com:12345"
- Note: If the wrong username or API_KEY are provided, a retry dialog will display like the following:
With API Key verification, it is necessary to click back to fix the error and try again. Both the "Basic" and "Web API" options will not work.
The export will be displayed to you in the Web Query Window
Click the second Yellow Arrow above the table of data (not the very top one). This will select all the CommCare data in the export.
Click Import
The "Import Data" window appears.
Click Properties
The "External Data Range" window appears
In the top of the window, name your export "Raw Data"
Choose Save query definition
Choose Enable background refresh
Choose Preserve Cell Formatting
Choose Adjust column width
Choose Overwrite existing cells with new data, clear unused cells
Choose Fill down formulas in columns adjacent to data
Click OK
Click OK again
The data is pasted into the empty worksheet
...
Create a new tab called "Expected Delivery Date"
Select the top-left cell (A1) in this tab
In the Insert menu choose Pivot Chart from the PivotTable icon
In the window that pops up, click "Table/Range" text box
Type "raw_data" into the box. This references the data range we created in the step above and is a lot easier than selecting all the columns each time.
Click Ok.
This creates a blank pivot table. (If this doesn't work it's likely because the range is referencing only to the first tab. Go back to step 4.2, then click "Formulas" at the top, next to "Name Manager" click on "Define Name", enter "raw_data" under "Name" and make sure "Scope" is set to "Workbook" as this will ensure the reference can be used in different tabs, click OK)
Click the pivot table on the left
In the Field list on the right, do the following:
Drag Expected Delivery Date to "Row Labels"
Drag District to "Column Labels"
Drag District to "Values"
Note: If you don't see the "Pivot Table Field List" on the right, click the Options menu at the top and choose Field List in the top right.
This will be the result:
We now have the data we want but it needs to be formatted:
You can drag the graphical chart to the side to get it out of the way
Next, we need to display the dates as months instead of days
Right-click on any of the dates in the pivot table and choose Group
Select Months in the list the appears and choose OK
This groups all the EDDs into monthly buckets
The graph defaults to a bar chart, but you can change it:
Right-click the graph and choose Change Chart Type
Select the line graph you'd like
Set the table to update automatically
Highlight the pivot table
Choose the Options menu and in the top-left type the name "EDD Graph"
Click Options below where you just typed
On the Data Tab select Refresh data when opening the file
Finally, rearrange the layout by inserting rows above table to move it down and drag the chart to the top of the page.
You can add titles and legends with the Layout menu
You're final result should look like this:
...