Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create a field in a pivot table

Hello, I have a question about how create calculated fields on a pivot table.

The table that I have is this:

Table.png

That I need it, is a substraction of the field Joiners with the other fields, in other words, this: (Joiners - LeaversOwnDesicion - Separations), and create a new field in the same table that show that substraction with the name "Movement Total".

Other thing that I need is show the percentaje of the months for years, for example, in the same table put a field with the name "2011" (that year is in the model and data of .qvw), and show the percentaje of the field "Joiners" and "Movement Total" , calculate from a immovable value, for example, 150.

I attach the .qvw fiel with my model if someone can help me.  I only have Personal Edition, I won't can see your files, so I would so glad if you can wrote the code or show me a image.

Beforehand, thanks you for you answers

Labels (1)
5 Replies
Not applicable
Author

Assuming your current expression is:

Count(Employee)

You can try the below one:

Fabs(Count({<AttritionReport={"Joiners"}>} Employee)-Count({<AttritionReport-={"Joiners"}>} Employee))

Kiran Rokkam.

Not applicable
Author

Thanks, this code is going to on the report or in the script?, regards

Not applicable
Author

In the chart. You would notice change in the total row of the chart.

Kiran.

Not applicable
Author

I apologize, but I didn't understand where I write the code that you show me, I wrote in the chart, like expression, like dimension, and not work :s.

By the way, my current expression is NumericCount (DISTINCT GlobalEmployeeId).

Regards!

Not applicable
Author

Please, exactly in what  wpart of the chat is going wrote that code :s, thanks