# Showing partial arrays in spreadsheet view

**URL:** https://discourse.paraview.org/t/showing-partial-arrays-in-spreadsheet-view/4401
**Category:** Development
**Tags:** proposal
**Created:** [May 24, 2020, 2:41pm UTC](https://discourse.paraview.org/t/showing-partial-arrays-in-spreadsheet-view/4401 "2020-05-24T14:41:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [May 24, 2020, 2:41pm UTC](https://discourse.paraview.org/t/showing-partial-arrays-in-spreadsheet-view/4401/1 "2020-05-24T14:41:18Z")

</div>

When dealing with composite-datasets such as multiblock-datasets or partitioned-dataset-collections, it’s not uncommon to have different set of arrays for each of the datasets that are part of the composite-dataset . When an array with a specific name is only present one some of the non-empty datasets, we refer to it as a **partial array**.

One uses the **spreadsheet view** to look at raw data values in a dataset. For composite-datasets, we can show the data from a single dataset or multiple datasets at the same time.

Currently, when showing data from multiple datasets, we drop columns for partial arrays. That reduces the utility of the spreadsheet view. Here’s a potential solution to address this issue:

- We start showing columns for all arrays, partial or otherwise.
- When an array is missing on block, we simply leave the cell blank.
- When user chooses **File \> Export Scene** to export the data from the spreadsheet view to a CSV file, we popup an options dialog that lets user choose what to do with partial arrays. One can either discard them, or add them as an empty cell. One thing to note that when importing this file back in ParaView empty cells will just get interpreted as 0 for numeric columns.

Thoughts?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 25, 2020, 1:49am UTC](https://discourse.paraview.org/t/showing-partial-arrays-in-spreadsheet-view/4401/2 "2020-05-25T01:49:04Z")

</div>

Looks like a good approach.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [May 25, 2020, 3:06pm UTC](https://discourse.paraview.org/t/showing-partial-arrays-in-spreadsheet-view/4401/3 "2020-05-25T15:06:45Z")

</div>

Feature request reported [here](https://gitlab.kitware.com/paraview/paraview/-/issues/19957)

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [June 2, 2020, 5:23pm UTC](https://discourse.paraview.org/t/showing-partial-arrays-in-spreadsheet-view/4401/4 "2020-06-02T17:23:01Z")

</div>

To close the loop, this is now supported in `master` and will be included in 5.9.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/88bb5463e91bfc3ac3ca8c2e00ee9598fcfbb2c8.png)
