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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sandya_K
Contributor
Contributor

Update a row with calculation of two rows in Pivot table

Hi,

I need to update a row in pivot table with calculation from two other rows. 

In this example, ITEM CLOSE RATE will be ITEM / ITEM QUAL

and ITEM2 CLOSE RATE = ITEM2 / ITEM2 QUAL

sandyakollu_1-1654540189928.png

If(METRIC= 'ITEM CLOSE RATE', Sum({<METRIC={'ITEM'}>}KPIValues) / Sum({<METRIC={'ITEM QUAL'}>}KPIValues), Sum(KPIValues))

I get blank values for close rate row.

Can you please assist?

Thanks.

 

 

Labels (1)
2 Replies
vinieme12
Champion III
Champion III

=If(METRIC= 'ITEM CLOSE RATE', ACTUALEXPRESSION FOR ITEM / ACTUALEXPRESSION FOR ITEM QUAL)

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

I tried the below set expression but it doesn't work.

If(METRIC= 'ITEM CLOSE RATE', Sum(${<METRIC={'ITEM'}>}KPIValues) / Sum(${<METRIC={'ITEM QUAL'}>}KPIValues), Sum(KPIValues))