Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression Independent from dimension

Hi,

I have 10 stores that sell 20 different products.

How can I create a straight table that, for every products, tell me how many stores didn't sell that product?

Labels (1)
5 Replies
Anonymous
Not applicable
Author

Hi Patrizio,

Dimension: Product

Expression: Count({<Sales = {'0'}>}Stores)

Not applicable
Author

Your data is aggregated or each transaction level ?

You can Try like below:

Count({<Stores={"=Sum(SalesAmount)=0"}>}Stores)

rubenmarin
MVP
MVP

Hi Patrizio, maybe:

Count(TOTAL DISTINCT Store) - Count(DISTINCT Store)

swuehl
Champion III
Champion III

Dimension: Product

Expression: = Sum( Aggr( If(Sum(SalesAmount)=0,1,0), Product, Store))

Anonymous
Not applicable
Author

The problem is with the incoming data.   You can't display what doesn't exist.  

Add a sale of 0.0001 to each product that the store didn't sell.  

When you sum sales the missing store data for a product will be $0.00  

A bar chart will also show what looks like zero sales for stores that didn't sell product. 

Missing.jpg