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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Werwolfli
Contributor
Contributor

Pivot Table - Sum of a calculated column

Hello

I have the following Pivot Table

Werwolfli_0-1679726325269.png

I have 1 Dimension - called "Standort".

The Column "Total Transaktionspreis" is a calculated column. 

--> Count({<WorkitemSource = {"*abcd*"}>} distinct WorkitemID)

 

The Column "Anteil Infrastruktur" is a percentage value.

Now i need to have the following value in the last column "Anteil Infra CHF":

The sum of all values in the column "Total Transakationspreis" * the percentage value.

How do i get the sum of all values in the column "Total Transaktionspreis" that i can to the calculation for the "Anteil Infra CHF column"

Thank you for you help.  

Labels (2)
3 Replies
rubenmarin

Hi, you can use aggr the split the calculatins by the different dimensions and use a sum as an aggregation function like:

Sum(Aggr(Count({<WorkitemSource = {"*abcd*"}>} distinct WorkitemID)*[Anteil Infrastruktur],Standot))

Werwolfli
Contributor
Contributor
Author

Thx for your support.

 

Now I have an issue to calculate the % value in the column "Anteil Infrastruktur"

 

There I need the % of "Total Transaktionspreis" of the sum of "Total Transaktionspreis"

So "Total Transaktionspreis" / Sum of "Total Transaktionspreis"

How can i do this?

 

rubenmarin

Hi, try with:

Count({<WorkitemSource = {"*abcd*"}>} distinct WorkitemID) / Count(TOTAL {<WorkitemSource = {"*abcd*"}>} distinct WorkitemID)