Masha Akatieva
04/14/2023, 1:27 PMcosts
is a fact/metric and currency
is a dimension that is directly dependent on id
(filter here).
maybe you can advise any approach?
i see it somehow as a metric where currency is a variable but i guess it’s not possible since metrics concept only returns numeric values, right?
thanks much in advance!Jakub Sterba
04/14/2023, 2:04 PM1123
for 123 USD and 2123
for 123 EUR. CASE WHEN statement in MAQL can probably help with such transformation (SELECT CASE WHEN Currency=USD THEN 1000+sum(value), WHEN Currency=EUR THEN 2000+sum(value) END BY Currency
)
2. You can use conditional formatting:
[>=2000]€{{{|1000.|0.##}}};
[>=1000]${{{|1000.|0.##}}};
0.##
Obviously you would have to use probably higher number digits for the “currency identifier” because this example lets you display only values smaller than 1000.Jakub Sterba
04/14/2023, 2:15 PMJakub Sterba
04/14/2023, 2:17 PMMasha Akatieva
04/14/2023, 3:39 PM