20260428
This commit is contained in:
22
External All Channel.SemanticModel/definition/functions.tmdl
Normal file
22
External All Channel.SemanticModel/definition/functions.tmdl
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user