Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
guillaume_gorli
Creator II
Creator II

Need help on application design

Dear All,

Please see below the issue i am facing :

I have a sales database showing basic data :

  • Invoicing date
  • Part number
  • Desc
  • Customer
  • Qty
  • Cost
  • Total Cost
  • Selling price
  • Whole Goods reference
  • Type

This database includes whole goods part numbers as well as part numbers invoiced to the customer by repair center.

For instance customer Robsinon purchased part number 0001X000 on 01/01/2017. This part number is declared as a whole goods thanks to the field Type (which is "Whole goods"). Some days later other references have been sold to this customer to be mounted on the whole goods initially sold. The key that links all this is the field "Whole Goods reference" :

Capture.JPG

The target of the application i have to build is to sum up those warranty cost per part number but also per whole goods.

To sum warranty cost up per part number is easy :

Capture.JPG

To sum warranty cost per machine is ok as well.

Capture.JPG

The issue i am facing is that in the last table i have to show data linked to the whole goods (Description of the whole goods, invoicing date of the whole goods & customer) although the total cost column is linked to the components invoiced by repair center.

So the output i get is the following : the description and the invoicing date refers to the components sold and not the whole good.

Capture.JPG

Although what i should get is :

Capture.JPG

I attached qvw and excel test database for the ones who could help.

Thanks in advance

Guillaume

1 Solution

Accepted Solutions
Anil_Babu_Samineni

This?

Sum(Aggr(Sum ({$ <[Type]={'Repair Center'}>}[Total Cost]), [Whole Goods reference]))

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

View solution in original post

4 Replies
techvarun
Specialist II
Specialist II

Hi,

Kindly check the attached sollution feasible.

sample.PNG

Anil_Babu_Samineni

This?

Sum(Aggr(Sum ({$ <[Type]={'Repair Center'}>}[Total Cost]), [Whole Goods reference]))

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
Anil_Babu_Samineni

And please check the suppress from presentation

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
guillaume_gorli
Creator II
Creator II
Author

Thanks a lot !