Forum Discussion

whereismydata's avatar
whereismydata
Resolver IV
4 years ago
Solved

Column/LIne chart question

Hi,

 

again, something that first seemes simple but then is challenging:

 

I want to visualize income/cost/profit of different products in one visual.

where the red line is 0, values below are cost, above income, grey line is profit, X axis =  date, Y axis = values

 

currently I've got one table where all data is stored. costs are negativ values:

| DATE | Product | Category 3 | Category 2 | Category 1 |

 

What I want to achieve:

I want to drill down on the categories. Currently I can only drill down on date. Idealy I would like to first show category 1, than drill down to Category 2, then 3, also drill down on dates should still be possible.

 

I pretty flexible in data modelling. One solution I could think of would be putting all aggregation levels into one table like this:

 

DateProductCategory_NameCategory_LevelValue
2021-01-01Product AA31
2021-01-01Product AB32
2021-01-01Product AC34
2021-01-01Product AD23
2021-01-01Product AE24
2021-01-01Product AF17

 

This, I think, would allow me to then filter on the Category level.

 

But is there a more elegant solution to this problem?

 

Thank you very much!

3 Replies

  • You don't really want to include hard coded aggregations if you can achieve the same from your raw data. So if you have data on the lowest granularity level (day and Category 3, I guess) you should then be able to add hierarchies as needed.

  • Hi lbendlin 

    thank you for taking time to look at my question.

    regarding you answer:
    using a hierarchy was the first think I tried but couldn't get to work. In the column series section I only can insert one field: