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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors