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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create column % from other column values

Hello,

I have a calculated expresion in the script to create a new column in my table. The calculate expresion is to obtain only the "Tipo actuacion" which finish in "1":

LOAD if(Right([Tipo actuacion],1)='1',[Tipo actuacion]) as [Notificaciones],

*;

The problem is that when I calculate a % column in a Pivot Table, it takes in consideration the other values (those which don't finish in "1" which appear in blank in the column "Notificaciones"), so the percentages aren't as I want.

Pivot Table.JPG.jpg

18 Replies
Not applicable
Author

I have tried it, but it doesn´t appear anything in the cells

Pivot Table.JPG.jpg

tresesco
MVP
MVP

This long chain could be minimized, if you could share your sample app with sample data.

Not applicable
Author

The problem is that I use Personal Edition, so I can´t open the file if you modify it

rustyfishbones
Master II
Master II

Apologies

Then say

SUM({<Notificaciones = {'*1'}>}Cantidad)/SUM(TOTAL {<Notificaciones = {'*1'}>}Cantidad)


or change Cantidad for your expression field


Regards


Alan

rustyfishbones
Master II
Master II

The result would be like this

2014-04-15_0909.png

tresesco
MVP
MVP

Let us have a look to find the actual issue, we could tell you then what to do.

Not applicable
Author

Solved,

The solution was this, but adding * before the 1:

((Sum({$ <Notificaciones={'*1'}>} Cantidad))/Aggr(NODISTINCT Sum({$ <Notificaciones={'*1'}>}Cantidad), [AñoExpediente]))*100


Now, I want to roung this percentage to 2 decimals

alexandros17
Partner - Champion III
Partner - Champion III

Delete the part *100 go in numbers, set decimal (2 digits) and check the box show in %

Not applicable
Author

Perfect! Thanks a lot!