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

count of locations by Qty Sold and Qty Onhand

Hello All,

Attached Qvw has qty BY CODES

Would like to caliculate count of QTY locations by sales and inventory


Can somebody please help


Codes

  QS---Quantity Sold

QA---Quantity onHand

  QP--- Quantity onOrder

Thanks,

Dinesh

1 Solution

Accepted Solutions
sunny_talwar

For QS

=Sum({<Codes = {'QS'}>}[Qty Sold])

For QA

=Sum({<Codes = {'QA'}>}[Qty Sold])

View solution in original post

7 Replies
sunny_talwar

What is the expected output you are looking to see and which type of object?

dseelam
Creator II
Creator II
Author

hey sunny,

would like to see a text object with a count of locations when

Codes=

QS---Quantity Sold

QA---Quantity onHand

Thanks,

D

sunny_talwar

For QS

=Sum({<Codes = {'QS'}>}[Qty Sold])

For QA

=Sum({<Codes = {'QA'}>}[Qty Sold])

dseelam
Creator II
Creator II
Author

Thank you sunny

dseelam
Creator II
Creator II
Author

Sunny One more question, Is there a way to show the number of locations reporting sales and inventory on a test object

sunny_talwar

May be this

=Count(DISTINCT{<Codes = {'QS'}>}Location)

=Count(DISTINCT{<Codes = {'QA'}>}Location)

dseelam
Creator II
Creator II
Author

Got it, Sorry this is my question first time when I asked could have properly mentioned