Forum Discussion

rmcgrath's avatar
rmcgrath
Advocate II
1 year ago
Solved

Need help with multiple columns

I am really struggling with how to tackle this:  I have a data set that has a "total dozens" column.  And then there are several columns for different sizes of product, which add up to the "total dozens".  Ultimately, I would like to display total dozens on a line chart, but also include a Size slicer (so the user could select "Large" and the chart would display the total for "Large")

 

What is the best way to go about this?  I have tried unpivoting the columns, but just kind of got double amounts.

 

PRODUCTTOTAL DOZENSSMALLMEDIUMLARGEXLARGEJUMBO
Product A640032032
Product B3212101000
Product C12010055010
Product D11052618322
Product E98902222
Product F4515151500
Product G766350035
  • Hi rmcgrath ,

     

    Looking at the sample what you need to do is to unpivot the data but delete the total dozen cplumns because that is the cause of your doubling of the quantities when you sim them.

2 Replies

  • Hi rmcgrath ,

     

    Looking at the sample what you need to do is to unpivot the data but delete the total dozen cplumns because that is the cause of your doubling of the quantities when you sim them.

  • If you excluded total dozens from the total and add a slicer, shouldnt that give you  to correct total? Also, I don't think a line chart is the correct one for this.