Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
subbareddykm
Creator II
Creator II

logic help

Hi All ,

can anyone tell me how get this output?

This is my data.

Sample:

LOAD * INLINE [

   

    Company, Sub, Id, Exp 1, Exp 2

    ABC, A1, 1, 5, 8

    ABC, A1, 2, 10, 13

    ABC, A1, 3, 13, 16

    ABC, A1, 4, 15, 18

    ABC, A1, 5, 17, 20

    ABC, A2, 6, 19, 22

    ABC, A2, 7, 20, 23

    ABC, A2, 8, 25, 28

    ABC, A2, 9, 30, 33

];

Output:

 

CompanySubIdExp 1Exp 2Logic
ABCA1158
ABC21013
ABC31316
ABC41518
ABC51720
ABCA26192219
ABC7202320+(23-22)
ABC8252825+(28-23)
ABC9303330+(33-28)
1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi,

Always try to explain the question clearly. Your last question is deviating from your initial question. Check the attachment.

Capture.PNG

View solution in original post

19 Replies
harishkumarg
Creator III
Creator III

Hi

Logic columns is needed only for Sub = A2?

Regards

Harish

subbareddykm
Creator II
Creator II
Author

logic.PNG

subbareddykm
Creator II
Creator II
Author

yes, that is my max sub area, from max sub only i need to caluculate .

prat1507
Specialist
Specialist

HI

PFA the .qvw for your reference. I've implemented the logic you want.

Regards

Pratyush

harishkumarg
Creator III
Creator III

Please find the attached QVW.

Hope this helps!

Regards

Harish

Anil_Babu_Samineni

Try This

(RangeSum(Sum([Exp 1]),Sum([Exp 2])))-Above(Sum([Exp 2]),1)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
harishkumarg
Creator III
Creator III

Output:

Test.PNG

Regards

Harish

akash3191
Partner - Contributor III
Partner - Contributor III

Hi Subbareddy,

Please find the attached application. It contains the output you want. Hope this helps.

Thanks,

Akash.

Anil_Babu_Samineni

Harish, What logic you have written over there? I don;t have S/W in hand

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful