The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello all,
I am trying to show sales into USD and Pounds.
basically I have Currency exchange table which have from_currency (Euro as base currency) and To_currency (Other currencies) and value.
I have used this formula below and is throwing error,
Kindly help me out !
Solved! Go to Solution.
Hi @analytics-ecoma ,
Please try:
New Sales conversion =
IF(SELECTEDVALUE(curency_exchange[to_currency_code]) = "USD", FORMAT([Total Sales]* SELECTEDVALUE(curency_exchange[value]), "$0,00",
IF(SELECTEDVALUE(curency_exchange[to_currency_code]) = "GBP", FORMAT([Total Sales]* SELECTEDVALUE(curency_exchange[value]), "$£0,00"))
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @analytics-ecoma ,
Please try:
New Sales conversion =
IF(SELECTEDVALUE(curency_exchange[to_currency_code]) = "USD", FORMAT([Total Sales]* SELECTEDVALUE(curency_exchange[value]), "$0,00",
IF(SELECTEDVALUE(curency_exchange[to_currency_code]) = "GBP", FORMAT([Total Sales]* SELECTEDVALUE(curency_exchange[value]), "$£0,00"))
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is awesome, thanks Li 🙂
Hello,
It is throwing an error. Is there any way to specifically pick the value of selected currency ?
@analytics-ecoma , try like
New Sales conversion =
Switch(true(),
SELECTEDVALUE(curency_exchange[to_currency_code]) = "USD", FORMAT([Total Sales]* VALUES(curency_exchange[value]), "$0,00"),
SELECTEDVALUE(curency_exchange[to_currency_code]) = "GBP", FORMAT([Total Sales]* VALUES(curency_exchange[value]), "$£0,00") )
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
116 | |
81 | |
81 | |
48 | |
41 |
User | Count |
---|---|
149 | |
110 | |
66 | |
64 | |
56 |