Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ajithsachin
Partner - Contributor II
Partner - Contributor II

What sell with my item

Hi All,

     i have a table contain invoice wise item wise sales data.

     if i select one item one report should show which item is selling more along with the selected item considering invoice.

     below i am mentioning the sample table format.

    

   

InvoiceItemDatesales qty
1item101-04-201510
1item201-04-201511
1item301-04-201512
1item401-04-201513
2item102-04-201520
2item202-04-201521
2item302-04-201522
2item402-04-201523
3item103-04-201530
3item203-04-201531
3item303-04-201532
3item403-04-201533

      

         Can anybody help please..

Regards,

Ajith

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

6 Replies
Anonymous
Not applicable

Something in this direction:

=FirstSortedValue({<Item=E(Item)>}  Item, -aggr(sum({<Item=>} [sales qty]),Item))

I could've missed something in the requirements, so you maybe need to adjust.

ajithsachin
Partner - Contributor II
Partner - Contributor II
Author

HI Michael,

     Thank you very much for the help.

     From this i am not getting which item is selling more with my one item.

     As per the sample data if i select 'item1' i should get the report like this

 

Itemsales qty
item469
item366
item263

      because along with item1, item4 is selling more.(in every invoice along with item1, item4 is there.)

      Hope you understand the requrement.

Regards,

Ajith

anbu1984
Master III
Master III

Check this app

qlikviewwizard
Master II
Master II

Hi ajithsachin001

Can you show us desired out put.

ajithsachin
Partner - Contributor II
Partner - Contributor II
Author

Hi,

     Out put will be like this

    

Itemsales qty
item469
item366
item263

     This means along with item1, item4 is selling more qty then item3 and item2.

     This should consider the invoice number like in one invoice item1 should be there and along with which item is selling more.

ajithsachin
Partner - Contributor II
Partner - Contributor II
Author

Thank you very much..