Power Query Question....How would I do this

anthonyenglish

New Member
Joined
Jan 17, 2005
Messages
21
I have data. It's currently in the format of Date, Category, value. There are 5 categories and I want to produce a stacked bar graph and a second stacked 100% graph - showing the percentage split. That bit is easy. However I have 2 categories of the 5 which I have been asked to total and plot as a line to show on the 2 graphs.....Essentially its time booking and 2 categories are classed as Productive time. I can do this in a fairly manual way when messing about with the data. Is there a way of doing it in a clever way using powerpivot. Ideally I'd like to be able to put slicers on the output so that they can drill down etc
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Obviously I'm not looking for somebody to give me the solution to this.....just point me in the right direction. Forgot to mention the data also has Department and sub Department fields.....that's what the slicers would be based on. In the image attached, the productive time line would run from the top of each orange block
 

Attachments

  • Graph.png
    Graph.png
    53.5 KB · Views: 3
Upvote 0
I'd probably create a 2 column table that has the 5 categories in the first column and the grouping categories in the second, then link that to the other table.
 
Upvote 0

Forum statistics

Threads
1,226,452
Messages
6,191,132
Members
453,641
Latest member
enfkkviesm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top