# Calculator - How to?

**URL:** https://discourse.paraview.org/t/calculator-how-to/14453
**Category:** ParaView Support
**Created:** [April 22, 2024, 7:48am UTC](https://discourse.paraview.org/t/calculator-how-to/14453 "2024-04-22T07:48:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![egomezp2002](https://discourse.paraview.org/user_avatar/discourse.paraview.org/egomezp2002/32/13749_2.png) [@egomezp2002](https://discourse.paraview.org/u/egomezp2002)
#### Post date: [April 22, 2024, 7:48am UTC](https://discourse.paraview.org/t/calculator-how-to/14453/1 "2024-04-22T07:48:08Z")

</div>

Hello, there.

As far as I know, my `displacements.pvd` (which I’m adding) consists of a Nx2 matrix where the first column represents the displacements in the X direction and the second column represents the displacements in the Y direction.

I planned to use Calculator in the form `displacements_x*iHat + displacements_y*jHat`but I’m new to ParaView, and this implementation doesn’t seem to work (probably because I’m not calling the displacements column in a proper way). Can I get any help on this?

Thank you!

[displacements.pvd](https://discourse.paraview.org/uploads/short-url/5jkk8sOLU03nIIT1FuoyxpbEz9X.pvd) (175 Bytes)  
[displacements000000.vtu](https://discourse.paraview.org/uploads/short-url/55tZkYjHWIek1Q5U5Pqzm6pFcut.vtu) (299.6 KB)

---

<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: [April 22, 2024, 7:50am UTC](https://discourse.paraview.org/t/calculator-how-to/14453/2 "2024-04-22T07:50:33Z")

</div>

Here is the corrected version:

`Displacement_X*iHat + Displacement_Y*jHat`

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

But you could use “MergeVectorComponents” instead.
