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
Anonymous
Not applicable

Infinity Value appears even though a Value should appear

I'm trying to get the converted currency Cost in Sterling by using a vlookup from my currency file as follows:

 

Cost Price GBP = If(Products[Cost Price Currency]="GBP",Products[Cost Price],Products[Cost Price]/LOOKUPVALUE('exrates-monthly'[Currency units per £1 ],'exrates-monthly'[Currency Code],Products[Cost Price Currency]))
 
However, I've noticed some infinity values with some records where there should have been a value as there is a Products[Cost Price] against these infinity records.
 
How do I go about getting the actual value for these records instead of the infinity sign?
4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Try like

Cost Price GBP = If(Products[Cost Price Currency]="GBP",Products[Cost Price],
divide(Products[Cost Price],LOOKUPVALUE('exrates-monthly'[Currency units per £1 ],'exrates-monthly'[Currency Code],Products[Cost Price Currency]))

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak

 

This works perfectly and gets rid of the infinity symbol thank you!

Anonymous
Not applicable

Hi Have you tried DIVIDE in your calculation?

 

Cost Price GBP = If(Products[Cost Price Currency]="GBP",Products[Cost Price],Products[Cost Price]     DIVIDE       LOOKUPVALUE('exrates-monthly'[Currency units per £1 ],'exrates-monthly'[Currency Code],Products[Cost Price Currency]))
 
Anonymous
Not applicable

Hi @Anonymous ,

 

The syntax you've provided below is comming back with errors, how can I write this formula using the DIVIDE function?

 

Many thanks

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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