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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Paulyeo11
Impactful Individual
Impactful Individual

Amount * Rate = SGD Amt Wrong

Hi All

 

I have below expression :-

AR_AMT_SGD =
if(divide([SALES_],'RATE'[_rate]) =0 , blank(),divide([SALES_],'RATE'[_rate]))
Above expression return wrong amount :-
 
Paulyeo11_0-1610638486227.png

What i want is AR_AMT_ X _rate= AR_AMT_SGD

https://www.dropbox.com/s/cgzsp911xj3sr1v/Testing3.pbix?dl=0

above is my PBI file.

 

Paul

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Paulyeo11 

Try one of the following, not sure if you need to multiply or divide:

AR_AMT_SGD = [AR_AMT_] * [_rate]

 

AR_AMT_SGD = DIVIDE([AR_AMT_] ,  [_rate],BLANK() )

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Paulyeo11 

Try one of the following, not sure if you need to multiply or divide:

AR_AMT_SGD = [AR_AMT_] * [_rate]

 

AR_AMT_SGD = DIVIDE([AR_AMT_] ,  [_rate],BLANK() )

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

PC2790
Community Champion
Community Champion

Hi @Paulyeo11 ,

 

If you want AR_AMT * _Rate, then shouldn't the formula be:

 

AR_AMT_SGD =
if(divide([AR_AMT ],'RATE'[_rate]) =0 , blank(),divide([AR_AMT ],'RATE'[_rate]))
 
I mean what is the Sales attribute that you are using here.
Please provide more details if I failed to understand your requirement

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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