New Member
October 20, 2022
I want to make a dashboard where i can mannualy make a daily schedule of the machines in production. So on my dashboard i use different dropdown lists to choose the right zone, production line, product that we're making and the starting and ending time.
the intention is that i can see in the chart all the machines that we're using for that product. So if i select "product 1" in the dropdown, i want to see "machine 1" until "machine 7" in the chart. Also sometimes we're using the same machine for diffrent products. So if i select "product 1" from 05h - 13h and "product 2" from 13h - 21h and "machine 1" is used in both products, i only want to see "machine 1" one time in my chart from 05h - 21h.
In data you can see that i used a table to connect all the machines to the right product and production line. Then i made the lists that i use for my dropdown lists on the dashboard.
It's difficult to explain so i hope you understand what i want as result and can help me.
Thanks for the efforts.
Moderators
January 31, 2022
Moderators
January 31, 2022
Thanks for the file. When you speak of machines you actually refer to product lines. Correct?
My first thought was that you can't combine two bars for different products if you want the product name on the vertical axis. And what would you do if there is a gap between the times on the same line? Power Query / Power Pivot came seems to be what you need. Started in PQ thinking I'd need to some clean-up first but didn't. So, I directly loaded the data into a Pivot Chart and created the chart below yours. Note that it requires a Refresh when you go through PQ.
Doesn't look the same but it does what you asked for. At the top level you see one bar for line 5. Drill down and you'll see the products 1 and 2, each on their own bar. Similar for Line 1 in the Blue zone, though the times for Product 3 seem odd to me. One batch goes from 6:30 to 13:15 and the other already starts 13:00. That can't be correct. Or?
Took the liberty of changing your data table a bit. No need to have a lot of blank rows with preset data validation. Add new data and the table will expand, including the data validation settings from the rows above.
And I also changed the Duration formula so that it will calculate correctly without having to manipulate the ending time if it goes past midnight.
I hope you find this method useful and can apply it in your dashboard.
1 Guest(s)