Creating a heatmap in Excel on Windows

To create a heatmap in Excel:

  1. Log in to Black Duck with the System Administrator role.

  2. Download the log files.

  3. Extract the logs to a folder.

  4. Open a new and blank workbook using Microsoft Excel. Using other spreadsheet/workbook programs may yield different results or differ in the steps below.

  5. On the first top empty cell of an empty worksheet:

    1. Click the Data tab > Get Data > From File > From Text/CSV

    2. Navigate to the location of your download logs folder/debug folder

    3. Select the Heatmap CSV file (scan-heatmap-YYYY-MM-##########.csv)

    4. Click Import

  6. From the Import Wizard perform following:

    1. Ensure that the Delimiter dropdown is set to Comma

    2. Click the Load button

  7. Select the entire data that has been imported

  8. Click the Insert tab

  9. Click the PivotTable icon

  10. In the Create PivotTable modal that appears:

    1. Ensure the Select a table or range radio button is selected with the appropriate selected field

    2. In the Choose where you want the PivotTable report to be placed section, select the New Worksheet

    3. Click the OK button.

      Your worksheet should look like this:



  11. Click in the Blank Pivot created, this should open the PivotTable Fields column panel.



  12. Drag the following to the Filters section in this order:

    1. Year

    2. Month

    3. Scan_Type

    4. Status

    5. Status_Message

    6. Project, Version

    7. Code_Location_Name

  13. Drag the Hour field to the Columns section.

  14. Drag the Day field to the Rows section.

  15. Drag the Scans field to the Values section. It should show as ‘Sum of Scans’.

  16. Rename the column header from 'Row Labels' to Days

  17. Rename the 'Column Labels' filter in second column to Hours

    The presentation in Excel should now look like this:



  18. Select all the cells that fall within the range between the first to last Hours column (do not include filter top row, ‘Grand Total’ bottom row or last column (Grand Total)



  19. Click the Home menu item

  20. From the Conditional Formatting > Color Scales, select Red - Yellow - Green scale



  21. Select the cells in bottom Grand Total row and apply the same color scale (excluding first and last column. Only Hours data cells).



  22. Select the cells in the rightmost Grand Total column and apply the same color scale.



  23. Select the bottom right corner cell alone and provide it with a blue background.



  24. To analyze the data behind any cell, double click on it.

Maximum Scan Size Heatmap

  1. Add a blank new sheet to the workbook.

  2. In the new worksheet, click on any cell, click on Insert tab, click on Pivot icon.

  3. Click on the Blank Pivot created, this should open the Pivot column panel.

  4. Drag the following to filter section in this order:

    1. Year

    2. Month

    3. Scan_Type

    4. Status

    5. Status_Message

    6. Project

    7. Version

    8. Code_Location_Name

  5. Drag the Hour field to the Columns section.

  6. Drag the Day field to the Rows section.

  7. Drag avg_scan_size_in_gb field to the Values section

  8. Change to show Maximum such that it should display ‘Max of avg_scan_size_in_gb’:

    1. Click on the field in the values section. This will launch the PivotTable field.

    2. Choose Maximum instead of Sum.

    3. Click the OK button.

  9. Select all the cells that fall within the range between the first to last Hours column (do not include filter top row, ‘Grand Total’ bottom row or last column (Grand Total)

  10. Click the Home tab, Conditional Formatting > Color Scales > Yellow - Green color scale.

  11. Select the cells in bottom Grand Total row and apply the same color scale.

  12. Select the cells in the rightmost Grand Total column and apply the same color scale.

  13. Select the bottom right corner cell alone and provide it with a blue background.

Scan Weight Heatmap

  1. Add a blank new sheet to the workbook.

  2. In the new worksheet, click on any cell, click on Insert tab, click on Pivot icon.

  3. Click on the Blank Pivot created, this should open the Pivot column panel.

  4. Drag the following to filter section in this order:

    1. Year

    2. Month

    3. Scan_Type

    4. Status

    5. Status_Message

    6. Project

    7. Version

    8. Code_Location_Name

  5. Drag the Hour field to the Columns section.

  6. Drag scan_weight field to the Values section and change to show Maximum such that it should display ‘Avg of scan_weight’. This can be set by clicking on the field in the values section and then choosing Average instead of Sum.

  7. Drag the Scans field to the Values section. It should show as ‘Sum of Scans’.

  8. Select all the cells that fall within the range between the first to last Hours column (do not include filter top row, ‘Grand Total’ bottom row or last column (Grand Total)

  9. Click the Home tab, Conditional Formatting > Color Scales > Red - White color scale.

  10. Select the cells in bottom Grand Total row and apply the same color scale.

  11. Select the cells in the rightmost Grand Total column and apply the same color scale.