Forum Discussion

pbiallday's avatar
pbiallday
Regular Visitor
2 years ago
Solved

Don't Summarize in bar chart?

I have data that includes a product name, price and how long it took to sell (see table below).

 

I create a stacked bar chart and put Price in Y axis and Time to Sell in the X axis. However, it will combine items - e.g. Sprocket B and C - that have the same values.

 

How can I get it to display each column as unique product?  I'm able to do this with the Scatterplot as I can choose Don't Summarize in both axis. How can I get that same functionality in the bar chart?

 

I read this post and understand it's a possibility, but it seems in that case that I'd have to replace a unique column ID for either x or y axis, which I don't want to do. Appreciate any help on this.

 

Product NamePriceTime to sell
Sprocket A$10020
Sprocket B$20040
Sprocket C$20025
Sprocket D$15050
Sprocket E$12510

9 Replies

    • pbiallday's avatar
      pbiallday
      Regular Visitor

      Yes, that works. It looks like the solution is to create a column and use this: Column = REPT(UNICHAR(8203),[Time to sell]).

       

      Can you explain why that works? I did some digging and understand what REPT and see what it does but it's still not clear to me on why it works in this context.

      • Ahmedx's avatar
        Ahmedx
        Icon for Super User rankSuper User

        this is the formula = UNICHAR(8203), this is a zero width space.
        REPT (UNICAR(8203), [Time to Sell])  - here we repeat this several times .
        and so when we pass this along the Y axis, it will not be read, but it will create a uniqueness for each row.