question

jing.c avatar image
0 Likes"
jing.c asked Phil BoBo answered

Calculated Tables can not recognize string format correctly

Hi everyone.

I met a problem when use Calculated Tables to show some information from entries in Global List.

As the pic below.

The "code" column in Entries is String, but It shows number in result of Calculated Table which make some string data miss.

Can anyone tell me how to enforce a column with specified format or how to solve this problem?

Any advice will be appreciated.

FlexSim 18.0.4
calculated tablesql queriesstring
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

If it is a global table, you can mark the column and set the column to as string by the context menu (right mouse button click).

Otherwise you can add an underscore "_" as a prefix to each value. When you process the data you remove the first character in the string.

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered

What is configured on the Display Format tab of your calculated table?

Please post an example model demonstrating the issue so we can replicate what you are seeing and explain how to change it.

It seems to be working fine to me:


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

jing.c avatar image jing.c commented ·

Thanks for your reply! @phil.bobo @Jörg Vogel

I found out the problem. The data is imported from an excel file through "Excel Import/Export", and it can not recognize all data format correctly. Especially when it comes the string one begin with number.

It still seems strange that the "code" from the label of item, and It shows normal in Entries Table(shown in the question detail) but strange in Calculated Table.

0 Likes 0 ·