Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
hi everyone
so i have a sql direct query with several tables;
table1 = financials
table2 = conversionrates
table1 has about 20 columns in sqlazure that has a bunch of numeric AUD data
table2 has 10 different conversion rates which are AUD to for example USD and AUD to Euro and so on
(my customer sets the conversion rates)
so how can i create a measure or slicer that will allow me to pick say USD or EURO or GBP to see my financial data in that currency with my conversion rates?
sorry if this is just too hard...i can do it in sqlazure and create 10 additional columns and rows but surely this is what measures are for right??
thank you all so much in advance 🙂 🙂 🙂
Nikki
Solved! Go to Solution.
You can use some measure like below. Check more details in the attached pbix.zip
converted sales =
IF (
ISFILTERED ( conversionrates[To] ),
SUM ( financials[sales] ) * MAX ( conversionrates[rate] ),
SUM ( financials[sales] )
* MAXX (
FILTER ( conversionrates, conversionrates[To] = "USD" ),
conversionrates[rate]
)
)
//BY DEFAULT, it converts to USD
You can use some measure like below. Check more details in the attached pbix.zip
converted sales =
IF (
ISFILTERED ( conversionrates[To] ),
SUM ( financials[sales] ) * MAX ( conversionrates[rate] ),
SUM ( financials[sales] )
* MAXX (
FILTER ( conversionrates, conversionrates[To] = "USD" ),
conversionrates[rate]
)
)
//BY DEFAULT, it converts to USD
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |