Forum Discussion
Measure Not Correct Currency
- 4 years ago
Hi Pretengineer ,
The reason why the line chart is not displayed after using the new measure is that the data obtained in the FORMAT format is essentially a text string. Even if the data format is changed to number or currency, it cannot be sorted by size, but only in alphabetical order.
But the Values in the line chart should be of number data type, so it can't display anything.
If you want the symbol displaied correctly in the line chart, you should have three measures, set the corresponding currency symbol for each measure, here's my solution.
Cost EUR' = IF ( SELECTEDVALUE ( Currency_Convert[Currency] ) = "EUR", MAX ( 'Cost_Data'[Cost EUR] ), BLANK () )Cost GBP' = IF ( SELECTEDVALUE ( Currency_Convert[Currency] ) = "GBP", MAX ( 'Cost_Data'[Cost GBP] ), BLANK () )Cost USD' = IF ( SELECTEDVALUE ( Currency_Convert[Currency] ) = "USD", MAX ( 'Cost_Data'[Cost USD] ), BLANK () )It get the correct result for each currency.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Pretengineer ,
The reason why the line chart is not displayed after using the new measure is that the data obtained in the FORMAT format is essentially a text string. Even if the data format is changed to number or currency, it cannot be sorted by size, but only in alphabetical order.
But the Values in the line chart should be of number data type, so it can't display anything.
If you want the symbol displaied correctly in the line chart, you should have three measures, set the corresponding currency symbol for each measure, here's my solution.
Cost EUR' =
IF (
SELECTEDVALUE ( Currency_Convert[Currency] ) = "EUR",
MAX ( 'Cost_Data'[Cost EUR] ),
BLANK ()
)
Cost GBP' =
IF (
SELECTEDVALUE ( Currency_Convert[Currency] ) = "GBP",
MAX ( 'Cost_Data'[Cost GBP] ),
BLANK ()
)
Cost USD' =
IF (
SELECTEDVALUE ( Currency_Convert[Currency] ) = "USD",
MAX ( 'Cost_Data'[Cost USD] ),
BLANK ()
)
It get the correct result for each currency.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.