Aggregating Numbers

Hello, I have a table that has both positive and negative numbers in them (in my ETL process). What I would like to do is leave it this way, and in the visualization, allow when using a chart for the calculation to take place. Is this possible? For example:


Name | Amount

Joe | 10

Mary | -20


This is how the tabular data looks. I want, in the vizualization for the bar chart to automatically calculate it so that when I use the SUM function in the bar chart, it would show -10.


My question is, would this happen?

Tagged:

Comments

  • You can’t change how the data is displayed conditionally based on the type of chart selected. You can graph it as a bar chart and by default it will display the raw data table when the user clicks on the card in the details view.

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • @mroker Agree with@GrantSmith above. You can just aggregate as normal in the card using SUM() and it will take into account negatives. Then in the drill path, your raw data will show the amount as you posted above.

    **Was this post helpful? Click Agree or Like below**

    **Did this solve your problem? Accept it as a solution!**