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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
greenyTBD
Contributor II
Contributor II

Need help with a formula

Hi,

I'm new to Qlik and need some help with a formula for a table.

I am trying to get the formula that gives me the numbers in column D.

example.jpg

Any idea if this would work dynamically in qlik?

qlik example.jpg 

Any help is greatly appreciated,

Thanks

Labels (4)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

1) if the column SUM is a measure, let say

SUM = sum(Value)

Then  use below

Max(TOTAL <Inventory> Aggr(sum(Value),Inventory,Color)) - sum(Value)

 

2) If the column SUM is not an aggregated measure

=SUM

then use below

=Max(TOTAL <Inventory>  SUM) - SUM

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

1) if the column SUM is a measure, let say

SUM = sum(Value)

Then  use below

Max(TOTAL <Inventory> Aggr(sum(Value),Inventory,Color)) - sum(Value)

 

2) If the column SUM is not an aggregated measure

=SUM

then use below

=Max(TOTAL <Inventory>  SUM) - SUM

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
greenyTBD
Contributor II
Contributor II
Author

Perfect, first one worked right away.

Thank you very much! You helped me alot