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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

AR Aging Amount after adding RATE not working

Hi All

 

I have below expression working fine :-
AR_AMT_ = if(sum(AR[AR_AMT]) =0 , blank(),sum(AR[AR_AMT]))

 

When i add above expression with RATE , it does not work :-

AR_AMT_SGD = if(divide([SALES_],'RATE'[RATE_]) =0 , blank(),divide([SALES_],'RATE'[RATE_]))

 

Can some one share wth me how to make it work ?

 

Paul

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Anonymous ,

 

Based on your description, you can create a measure as follows.

_rate = SUMX(FILTER('RATE',[SOURCE]=SELECTEDVALUE('AR'[SOURCE])),[RATE])
Result:
 

v-yuaj-msft_0-1610440010204.png

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

 

Thanks for your reply.

In table “AR”, there are only two values(TS and TI) in "Source" field. So TA and TP display NULL.

v-yuaj-msft_0-1610442218572.png

 

Best Regards,

Yuna

View solution in original post

11 REPLIES 11
Anonymous
Not applicable

Hi @Anonymous ,

 

Sorry, it's still not clear. Can you share some sample data and the expected result to have a clear understanding of your question?

You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.

 

Best Regards,

Yuna

Anonymous
Not applicable

Hi Yuaj

 

Thank you for wanted to help me.

Now my Rate work for Sales Table also Inventory Table But not work for AR Table.

Paulyeo11_0-1610333760234.png

https://www.dropbox.com/s/5n6zhqrfqs42ip2/PBT_V2021_88%20ROW%2050%20solve%20AR%20rate%20wrong.pbix?d...

 

Above is the link for my PBI file

 

Paul

 

Anonymous
Not applicable

Hi @Anonymous ,

 

Based on your description, you can create a measure as follows.

_rate = SUMX(FILTER('RATE',[SOURCE]=SELECTEDVALUE('AR'[SOURCE])),[RATE])
Result:
 

v-yuaj-msft_0-1610440010204.png

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 
Anonymous
Not applicable

Hi Yuaj

Thank you very much , it work for SOURCE = TS AND TI now , but SOURCE = TA and TP display null.

Paulyeo11_0-1610441043609.png

 

Anonymous
Not applicable

Hi @Anonymous ,

 

Thanks for your reply.

In table “AR”, there are only two values(TS and TI) in "Source" field. So TA and TP display NULL.

v-yuaj-msft_0-1610442218572.png

 

Best Regards,

Yuna

Anonymous
Not applicable

Hi Yuaj

thank you very much , you are very sharp . I just check . It does not load all the 4 raw data file , some how folder name suddenly change . I need to reload again from zero. 

amitchandak
Super User
Super User

@Anonymous , I doubt that you join with the rate table is not correct. If they from a different table, they should be measures

A measure  divide([SALES_],[RATE_], blank)

 

Should work.  But seem like there some issue with rate or sales , because of screenshot

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
aj1973
Community Champion
Community Champion

Hi @Anonymous 

Try this:

 

AR_AMT_SGD =

Var SalesByRate = divide([SALES_] , [RATE_] , 0)

Return

IF(SalesByRAte = 0 , blank() , SalesByRate)

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

Hi AJ

I just try , it return the same wrong result :-

Paulyeo11_0-1609973736535.png

 

aj1973
Community Champion
Community Champion

Paul,

Sorry but you are not telling us what do you want to achieve!! more details would be more helpfull and sharing a PIBX would be even better.

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

littlemojopuppy
Community Champion
Community Champion

Can you share some sample data, the expected result and a screen shot of what it is doing?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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