# How to create a global variable?

**URL:** https://discourse.paraview.org/t/how-to-create-a-global-variable/4492
**Category:** ParaView Support
**Created:** [June 3, 2020, 1:32pm UTC](https://discourse.paraview.org/t/how-to-create-a-global-variable/4492 "2020-06-03T13:32:58Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![Tarun\_Choudhary](https://discourse.paraview.org/user_avatar/discourse.paraview.org/tarun_choudhary/32/2030_2.png) [@Tarun\_Choudhary](https://discourse.paraview.org/u/Tarun_Choudhary)
#### Post date: [December 22, 2020, 7:35pm UTC](https://discourse.paraview.org/t/how-to-create-a-global-variable/4492/21 "2020-12-22T19:35:37Z")

</div>

Many thanks for your quick reply Mathieu!.  
This example gives me a full understanding on how to AddFieldArrays filer in ParaView.

Thanks & Regards,  
Tarun

---

<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: [November 25, 2021, 9:02am UTC](https://discourse.paraview.org/t/how-to-create-a-global-variable/4492/22 "2021-11-25T09:02:14Z")

</div>

A post was split to a new topic: [Plot Data](https://discourse.paraview.org/t/plot-data/8486)

---

<div class="post-metadata">

### Author: ![ANON1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anon1/32/3919_2.png) [@ANON1](https://discourse.paraview.org/u/ANON1)
#### Post date: [January 21, 2025, 3:40pm UTC](https://discourse.paraview.org/t/how-to-create-a-global-variable/4492/23 "2025-01-21T15:40:41Z")

</div>

I am not sure if that was a typo or the older versions of ParaView didn’t implement that but the Python Calculator has “Field Data” option for array association.

So, to answer my question: The easiest way to create a field data (also know as global data) in my case is to use the Python calculator with the option “Field Data” for Array association as shown below:

![image](https://discourse.paraview.org/uploads/default/original/2X/a/a242936c241b706b32918035f553a326e231da79.png)

But I think this works with input arrays that are already Field data such as time.

[Previous page](https://discourse.paraview.org/t/how-to-create-a-global-variable/4492.md?page=1)
