question

Kade G avatar image
0 Likes"
Kade G asked Benjamin W2 commented

Customizing Data Calculation of Dashboard Graphs

Hello,

I would like to figure out how to customize a graph to better analyze my process flow. Instead of knowing the number of contents in a queue that is accomplished with a "contents" graph, I would like to know the days of supply in my queue.

My calculation for days of supply would simply be to take the contents in my queue and divide it by the average production rate (in days) of the contents going through a processor. My initial thought is that I could simply divide the value in the "contents" graph by the production rate, but I'm not sure how to access the data collector of this "contents" graph. Any help would be appreciated. Thank you!

FlexSim 20.2.0
dashboardsstatistics collectorflexsim 20.2.0
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

tannerp avatar image tannerp commented ·

@kade.g,

The "data collector" to which you're referring sounds like it's probably a Statistics Collector, and if it's not, it could be. If it is a Statistics Collector, then we can add a Calculated Table that can run whatever calculations you need on the data. Can you post your model or a small sample model so I can see what data we're using? Then I'm happy to help implement a solution.

0 Likes 0 ·
Kade G avatar image Kade G tannerp commented ·

Example.fsm

If you look at the first dashboard, you'll notice that I use content graphs to see how much of each pallet is in the process. I would like to figure out how to convert that to days of supply.

0 Likes 0 ·
example.fsm (70.0 KiB)
Benjamin W2 avatar image Benjamin W2 commented ·

Hi @kade.g, was tanner.p's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

0 Likes 0 ·

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered tannerp commented

@kade.g,

You can install the Stats Collector template for each chart by going to the Advanced properties window and clicking "Install". This gives you access to the data you need.

From there, you can use a Calculated Table to gather the data you need and perform any calculations. I wasn't sure what you're using as your "production rate", but you can just set up an operation in the Calculated Table to divide the contents by that value.

example (7)_1.fsm


· 7
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Kade G avatar image Kade G commented ·

@tanner.p,

I have incorporated your suggestions, and I can effectively reproduce a content graph using collectors and the calculated table! However, I'm unsure of how I can perform mathematical operations in the calculated table, so that I can convert to a customized unit of measurement. Here's a picture for reference:

0 Likes 0 ·
1595339925277.png (32.8 KiB)
tannerp avatar image tannerp Kade G commented ·
What is the calculation you need to make? The Query can use many SQL operators, such as SUM, COUNT, AVERAGE, etc. and I'm sure we could make something work.
0 Likes 0 ·
Kade G avatar image Kade G tannerp commented ·

@tanner.p,


I would like to divide each data-point by a table value. For example, I would like to divide each data-point by GlobalTable1[1][2]

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.