chore: update report visuals, semantic model definitions, and cleanup legacy queries
This commit is contained in:
20
External All Channel.SemanticModel/DAXQueries/udf.dax
Normal file
20
External All Channel.SemanticModel/DAXQueries/udf.dax
Normal file
@@ -0,0 +1,20 @@
|
||||
DEFINE
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user