question

Maíra A avatar image
0 Likes"
Maíra A asked Maíra A commented

How can i do a dashboard from a global table?

I have a global table that is changing the values continuously and i would like to see this changes in a dashboard. How can i do that?

FlexSim 19.0.0
global tabledashboards
5 |100000

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

Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered Maíra A commented

You can use a calculated table with this query:

SELECT * FROM GlobalTable1

You should probably set the update mode to Always, so that the calculated table's values match the Global Table's values at all times.

Then you can make a chart using the Calculated Table.

· 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.

Maíra A avatar image Maíra A commented ·

@jordan.johnson I would like to make a time plot chart from this table, but i'm having difficults to configurate that. Can you give me some help?

table-chart.fsm

0 Likes 0 ·
table-chart.fsm (24.1 KiB)
Jordan Johnson avatar image Jordan Johnson ♦♦ Maíra A commented ·

In your model, I see that you are writing to 3 values in the global table every 10 time units. If you want to see those values over time, you need to find a way to record those values over time. I did this with a Statistics Collector in the attached model:

table-chart-modified.fsm

The statistics collector adds a new row for each token that enters the Custom Code activity. Each row records the time. Each row also records the token's modelo label, and the token's tipo label. So every 10 seconds you get three rows. Then you can use the chart to plot tipo vs time, and split by the modelo values. That shows each modelo in a different color.

1 Like 1 ·
Maíra A avatar image Maíra A Jordan Johnson ♦♦ commented ·

Thank you so much @jordan.johnson!!

0 Likes 0 ·
tannerp avatar image
0 Likes"
tannerp answered Maíra A commented

Hi @Maíra A,

You can insert a Table object into a dashboard and then link it to the Global Table using the eyedropper tool.

1)

2)


dashboard-table.png (23.6 KiB)
dashboard-table.gif (155.4 KiB)
· 1
5 |100000

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

Maíra A avatar image Maíra A commented ·

This is also a good option! Thanks @tanner.p

0 Likes 0 ·