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: 
SupriyaTapkir
Contributor
Contributor

calculation

we have below scenario  

Max maharashtra salary - rs30000 ( MAX Sal – from excel lookup sheet )

Max Karnataka salary - rs10000 ( MAX Sal – from excel lookup sheet )

If employee have paid 35000 rupees in maharashtra then we create EMP with 30000 for Empid 100

If same employee move to next state Karnataka and kernataka max is 10000 then we should create Empid 100 = 0 as he have paid 30000 already in previous state which is greater than next state i.e NJ Max (10000)

So finally , Employee will have 2 records . 1st record for Empid 100 for maharashtra will have 30000 and 2nd Karnataka record will have 0 

input  

Emp id state Max salary 

100 maharashtra 35000

100 karnataka 10000

   

output  

100 maharashtra 30000

100 karnataka 0

Labels (3)
1 Reply
Anonymous
Not applicable

Hi

Can you show us with more data to explain the calculation logic? eg:

input 

Emp id state Max salary 

100 maharashtra 35000

100 karnataka 10000

101 maharashtra 20000

101 karnataka 5000

what will be the output?

 

Regards

Shong