Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

How to prepare data when there are multiple items in 1 field

Hi. I need to create a stacked bar chart of items sold per month; however, the data presented to me came with all the data in a single field. Any advice on how to get this into the correct format?  ...
  • pawel1's avatar
    8 years ago

     You want your SalesTable look like this:

    1. Use Query Editor to re-format your source data.  Steps:

    - Split Colums by Delimiter /

    - Split Columns by Delimiter ,

    - Unpivot the last 3 columns (with Items)

    - Adjust Data Type, etc

     

     

    2. Add a measure 

    Count Items = COUNTROWS(SalesTable)

     

    3. Visualize with Matrix or other chart 

     

     

     

  • v-chuncz-msft's avatar
    8 years ago

    Anonymous,

     

    By the way, you may select Split into Rows directly.