Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
lionking15
Creator
Creator

Output According to given condition

Hi,

Kindly find below given dummy data

Base Table-  

Accnt NumberAgentAmountCappingDate
1a10303/1/2017
1a10304/6/2017
1b18308/6/2017
1c30308/26/2017
2a40304/1/2017
2b70304/25/2017
3b50305/1/2017
4c60305/26/2017
5a20303/2/2017
5c20304/22/2017
5a10305/23/2017
6c8030

6/22/2017

Output Required-

 

Accnt NumberAgentSum(Amount)CappingRequired Field
1a20301
1b18302
1c30303
2a40301
2b70302
3b50301
4c60301
5a30301
5c20302
6c80301

My Requirement

  1. i should get sum of amount as per Accnt Number and Agent
  2. i should give output(i.e Required Field)as per first occurrence of Accnt Number and Agent on Date.

Note-The output to be obtained from front end and not from the back end.

5 Replies
lionking15
Creator
Creator
Author

Hi,

And One 'Accnt Number' can have multiple 'Agent' and that number is not fixed.

vinieme12
Champion III
Champion III

use Autonumber()

LOAD AccntNumber

          Agent,

          Capping,

          Sum(Amount) as Sum_Amt,

           Autonumber(Agent & Date , Agent) as NEWFIELD


FROM XX

Group by AccntNumber,Agent,Capping;

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

Hi,

See the attached qvw.

effinty2112
Master
Master

Hi Giridhar,

Maybe:

Accnt Number Agent Sum(Amount) min(Capping) RowNo()
1a20301
1b18302
1c30303
2a40301
2b70302
3b50301
4c60301
5a30301
5c20302
6c80301

Regards

Andrew

vinayakg
Contributor III
Contributor III

Hi Giridhar,

Please Find the attached File, It may Help u to get ur required answer.