question

Ana Madureira avatar image
0 Likes"
Ana Madureira asked Ana Madureira commented

Calculated table to Time Plot?

Hello everyone!

I need to see the percentages in the following calculated table in a time plot, so I can see their behaviour over time.

1684858836423.png

How can I achieve this result?

Thank you in advance for your help.

FlexSim 22.1.4
calculated tabletime plot
1684858836423.png (45.7 KiB)
5 |100000

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

1 Answer

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Ana Madureira commented

Each of the charts requires the table to be in a specific format so it can be visualized. For the time plot, that format is described here:

https://docs.flexsim.com/en/23.1/Reference/Dashboard/Charts/TimePlot/TimePlot.html

At first glance, it looks like you have a "wide" table, where each row has a time value and one data value per column. In contrast, the timeplot in FlexSim requires a "tall" table, where there is a column for the time values, a column for the y values, and a column for the "category" value, such as the name of a statistic.

Current data layout:

TimeStat1Stat2Stat3
Time1Value1Value2Value3
Time2Value4Value5Value6


Data layout for the time plot:

TimeStatValue
Time1Stat1Value1
Time1Stat2Value2
Time1Stat3Value3
Time2Stat1Value4
Time2Stat2Value5
Time2Stat3Value6


To create a table in the second format, you have a couple options in general. I don't know if they will work as written here without a model, but they are starting points:

  • In a Calculated Table, if using the Query Builder, set the metric layout for all metrics to "Use the shared name/value columns for this metric".
  • You could make a Statistics Collector that listens to the same event multiple times. Each copy of the event could calculate a different statistic value in the data labels.

Hopefully that gives you some guidance.

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