Skip to main content

Hi,

 

I have a bar chart and using pane's hidden subtotals to create white space for different panes, however, I would also like to have totals for another dimension showing in the same chart (See screenshot below), is there a way to achieve this?

 

Besides, is there a way showing the quarter headers at the bottom of the chart by having this view?

 

Thanks!How to show totals per dimension in  a particular view instead of showing totals per pane?

2 answers
  1. Dec 27, 2021, 2:56 PM

    @Teik Tee​ so instead of splitting the chart out by [Status], let's create separate metrics for SUM([Orders]) and split the chart out by those.

    1. Create three new calculated fields
      1. [Current Orders] = SUM(IF [Status] = 'Current' THEN [Orders] END)
      2. [Prior Orders] = SUM(IF [Status] = 'Prior' THEN [Orders] END)
      3. [Total Orders] = [Current Orders] + [Prior Orders]
    2. Add Measure Names to the filters shelf and select your three new fields. Then replace [Status] on both the Columns shelf and marks card (color) with Measure Names
    3. Remove your SUM([Orders]) from the marks card and replace the SUM([Orders]) on the Rows shelf with Measure Values
    4. Add Grand Totals and edit [Total Orders] color to be white (for your spacing)

     

    See the attached workbook for reference.

    I hope this helps!

    Kelsie

0/9000