Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
admin11
Memorable Member
Memorable Member

How to convert foreign currency X Rate = SGD amount ?

Hi All

 

I need to compute net profit in SGD = net profit X rate 

admin11_0-1616624357094.png

I try below , it return wrong value :-:-

 

_YTD_NET_PROFIT_SGD = DIVIDE([_YTD_NET PROFIT_C] , [_rate_AR],BLANK() )
 

Below is my PBI file :-

 

https://www.dropbox.com/s/3x0zq00lq3q7s4o/PBT_V2021_392%20TI_SI_GL%20how%20to%20compute%20net%20prof...

 

Paul

1 ACCEPTED SOLUTION

Hi,

This measure works

Measure 4 = SUMX(VALUES('RATE'[SOURCE]),[YTD_NET_PROFIT_SGD])

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
PhilipTreacy
Super User
Super User

@admin11 

Hi Paul,

Download PBIX

Is the calculation Net Profit X Rate or Net Profit / Rate ?

Try this measure if you multiply them

 

_YTD_NET_PROFIT_SGD = [_YTD_NET PROFIT_C] * SELECTEDVALUE('RATE'[RATE])

 

Screenshot 2021-03-25 103859.png

 

or this if you divide

_YTD_NET_PROFIT_SGD = DIVIDE([_YTD_NET PROFIT_C], SELECTEDVALUE('RATE'[RATE]))

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacy 

Thank you very much , it work fine , But it does not give Overall Total amount , i recall i need to add SMUX , i try below :-
_YTD_NET_PROFIT_SGD = SUMX(DIVIDE([_YTD_NET PROFIT_C] , [_rate_AR],BLANK() ))
it does not work.
 
Paul

Hi,

This measure works

Measure 4 = SUMX(VALUES('RATE'[SOURCE]),[YTD_NET_PROFIT_SGD])

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur 

Thank you very much.

Paul

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.