因此,我有一个动态图形标题,该标题将根据所选的时间成分(Period [Period])和所选的班次(T_HISSSHIFTS [C_PERIOD])而变化。
T_HISSSHIFTS [C_PERIOD]中的值显示乱序,例如D,B,C,A我需要它以A,B,C,D或所选内容的顺序出现。下面是代码,有什么想法如何安排这些班次?
Title_Eff+MachineType =
"Knit Effeciency by "
& CONCATENATEX ( VALUES ( Period[Period] ), Period[Period], ", " ) & " By Shifts "
& CONCATENATEX ( VALUES ( T_HISSHIFTS[C_PERIOD] ), T_HISSHIFTS[C_PERIOD], ", " )
答案 0 :(得分:0)
您可以轻松控制订单:
CONCATENATEX ( <Table>, <Expression> [, <Delimiter>] [, <OrderBy_Expression> [, [<Order>] [, <OrderBy_Expression> [, [<Order>] [, … ] ] ] ] ] )
因此将您的代码更改为:
Title_Eff+MachineType =
"Knit Effeciency by "
& CONCATENATEX ( VALUES ( Period[Period] ), Period[Period], ", " ) & " By Shifts "
& CONCATENATEX ( VALUES ( T_HISSHIFTS[C_PERIOD] ), T_HISSHIFTS[C_PERIOD], ", " , T_HISSHIFTS[C_PERIOD])
应该给您期望的输出。