Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get only 2 values in a bar chart from a lot of values?

Hi,

for an example i use a table like this:

StoreProduct
MunichHandy
CologneTV
BerlinPC
Munich
Munich
MunichXBOX
Berlin

Now i want to create a bar chart wich shows the number of Stores wich have a value in product and not.

Can i do this by a chart expression or only by (load) script?

regards,

sam

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I did it by script:

Load

Store,

if(Product like '','Empty','Value')) as [Product Value]

from...

Bar Chart:

Dimension: [Product Value]

Measure: Count(Stores)


regards,

sam

View solution in original post

3 Replies
sunny_talwar

Would Munich and Berlin be included in both with and without value in product?

Anonymous
Not applicable
Author

Yes,count each store and show the number of stores with value in product and number of stores with no value in product.

Anonymous
Not applicable
Author

I did it by script:

Load

Store,

if(Product like '','Empty','Value')) as [Product Value]

from...

Bar Chart:

Dimension: [Product Value]

Measure: Count(Stores)


regards,

sam