Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
francisco_cohen
Contributor III
Contributor III

Calculate wheight value

Hi,

I need to add a measure to calculate the wheight of each of my table rows:

CustomerAmountWeight
A50027%
B100054%
C35019%
TOTAL1850100%

 

How can I do this?

Thank you,

FC.

Labels (1)
  • SaaS

1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

Use total qualifier
Assuming your Amount Expression is Sum(Amount)
new expression for weight Sum(Amount)/Sum(total Amount)
reference for the total qualifier below
https://community.qlik.com/t5/Qlik-Design-Blog/What-does-the-TOTAL-qualifier-do/ba-p/1472990

View solution in original post

1 Reply
dplr-rn
Partner - Master III
Partner - Master III

Use total qualifier
Assuming your Amount Expression is Sum(Amount)
new expression for weight Sum(Amount)/Sum(total Amount)
reference for the total qualifier below
https://community.qlik.com/t5/Qlik-Design-Blog/What-does-the-TOTAL-qualifier-do/ba-p/1472990