Files
MarketAnalysis-Rebuild/External All Channel.SemanticModel/definition/functions.tmdl
2026-04-28 13:28:35 +08:00

23 lines
426 B
Plaintext

function Switch_Unit_Value =
(unit, O_Value) =>
SWITCH(
unit,
"RMB", O_Value,
"K RMB", O_Value / 1000,
"M RMB", O_Value / 1000000,
"USD", DIVIDE(
O_Value,
[ExchangeRate]
),
"K USD", DIVIDE(
O_Value,
[ExchangeRate]
) / 1000,
"M USD", DIVIDE(
O_Value,
[ExchangeRate]
) / 1000000
)
lineageTag: 13dbea01-c9ee-4b9f-8d71-1d24e20fd595