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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
admin11
Memorable Member
Memorable Member

My expression for convert IDR amount to SGD return null

Hi All

 

I have below expression , dont know why it unable to work , as it display null  :-

AMT_ON_HAND_SGD_ = Divide(SUMX(INVC, INVC[UNIT_COST]*INVC[QTY_On Hand]), 'RATE'[_rate])
 
1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

@admin11 

Hi Paul,

Download PBIX

I'm not sure what you're expected result is but it looks to me like the [_rate] is measure is wrong because it's getting the RATE from the AR table when I think you shoudl be getting it from the Rate table.

I've amended the measure to this

_rate = SUMX(FILTER('RATE',[SOURCE]=SELECTEDVALUE('RATE'[SOURCE])),[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!


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

@admin11 

Hi Paul,

Download PBIX

I'm not sure what you're expected result is but it looks to me like the [_rate] is measure is wrong because it's getting the RATE from the AR table when I think you shoudl be getting it from the Rate table.

I've amended the measure to this

_rate = SUMX(FILTER('RATE',[SOURCE]=SELECTEDVALUE('RATE'[SOURCE])),[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.

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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