cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dkozak Frequent Visitor
Frequent Visitor

Currency conversion Issue

Hi everyone, 

I have complex formula to calculate the total sales in euro currency. 

The formula is as follows: 

Sales(Euro) = calculate( divide(YTD Sales Month; Exchange rate Month) - Divide( YTD Sales Month - 1 ; Exchange rate Month -1)) Exampl for Sales (Euro)of February= calculate(Divide( YTD Sales february ; Exchange rate February) - Divide( YTD Sales Janyary ; Exchange Rate January))

And for that i have three tables Sales_Table, CurrencyExchange_Table(date, local currency and value in euro) and Calendar Table. How you'r modeling this situation??!! (for me it gives me wrong total in case of sample formula as described or wrong results when i use Sumx and previous YTD)Currency Modal.JPG

 

Could anyone Help me Please!

4 REPLIES 4
Community Support Team
Community Support Team

Re: Currency conversion Issue

Hi @dkozak 

Assume "euro value" in my test file refers to value in euro per local currency unit.

So we could consider "euro value" as Exchange rate.

 

1.create two columns

connected_cl1 = [date]&[local currency]
# in rate table
connected_cl2 = [date]&[country]
#in sales table

2. create relationship between "sales table" and "rate table"

5.png

 

3. to get total sales in euro currency per month in a year

add [year],[month] from "calendar" table into the matrix "row" field,

create a measure and add it into "value" field of the matrix.

euro sales = MAX(sales[sales value])*MAX('rate table'[euro value])

6.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

dkozak Frequent Visitor
Frequent Visitor

Re: Currency conversion Issue

Hi @v-juanli-msft 

I did it before and it did not work, it gives us a wrong totals. 

Any one have an idea ?

The problem is bigger 😕 

I cant add my pbix to this post llike you did.

Regards

Community Support Team
Community Support Team

Re: Currency conversion Issue

Hi @dkozak 

Remove Private information from your file,

Upload your file to Onedrive,

Share the link with me

 

Best Regards
Maggie

dkozak Frequent Visitor
Frequent Visitor

Re: Currency conversion Issue

Hello @v-juanli-msft ,

Thanks for your response, you find bellow the link to the PBix file and also the twos sources files( i put all files to let you even prupose a new modeling if i didn't correctly).

Link: https://1drv.ms/u/s!Ajh-Pr8pM0w_bG6WApK-LFWvwTU?e=F0I0Py

after lot and lot of try and Just to remind the problem: the problem is that we can't work with totalYTD and TotalYTD(previousmonth()) inside a Sumx(table, expression)

using the files in the drive(Sales file, Currency rates exhange file) my manager need the Sales reports in euro currency and using this formula of exchanging ( Sales Euro Month=  divide(total sales YTD Month; Currency Exchange Rate Month) - divide(total sales YTD Month-1; Currency Exchange Rate Month-1)

Example: Sales Euro February =  divide(total sales YTD February; Currency Exchange Rate February) - divide(total sales YTD January; Currency Exchange Rate January).

let me know if you need any more information

Thanks in advance

 

 

Link: https://1drv.ms/u/s!Ajh-Pr8pM0w_bG6WApK-LFWvwTU?e=F0I0Py

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)