Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello,
I am trying to calculate KSH & STG to USD. The rate table looks like this.
and my main Sales data
I am concatenating the year and week as a string in both tables to match them but. I am getting empty values in the merge columns with the when exchange rates
my formula to calculate the gross price in dollars is the following.
= Table.AddColumn(#"Rounded Off", "Gross_USD", each if [CURRENCY] = "KSH" then [GROSS_PRICE] / [Rates.KSH_PER_USD]
else if [CURRENCY] = "STG" then ([Rates.USD_PER_STG] * [GROSS_PRICE])
else [GROSS_PRICE])
Thank you very much for taking the time in reading this post this is for a sales report and is my first as a freelancer.
Regards,
Hi,
The Query Editor is case sensitive. In the cells where you get null, ensure that in the Currency column, the entry is KSH and STG. If it still does not help, then share the link from where i can download your PBI file. If the data was imported from an MS Excel file, then share the download link of that Excel file as well.
Here's my relations
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
86 | |
84 | |
66 | |
49 |
User | Count |
---|---|
140 | |
113 | |
106 | |
64 | |
60 |