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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
admin11
Memorable Member
Memorable Member

Straight Table total amount unable to display even i hv activated

admin11_0-1611371634055.png

 

1 ACCEPTED SOLUTION

Hi,

Download my PBI file from here.

Hope this helps.

Untitled.png

 

Untitled1.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

15 REPLIES 15
manikumar34
Solution Sage
Solution Sage

@admin11 , I see you already have amt_on_hand and rate as sperate measures. You can directly divide them to get desired output. 

DIVIDE([Amt_on_hand],[rate],0)

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




Anonymous
Not applicable

Hi Mani

I am still getting total amount =0

ebeery
Memorable Member
Memorable Member

@admin11 the DAX DIVIDE function is "safe divide".  This means that when it encounters a divide by 0 situation, it will return an "alternate result".  The default alternate result is BLANK.  

 

I suspect that the reason you are not seeing a total is because your formula is encountering a divide by 0 error in the total row, and consequently returning the default alternate result of BLANK in that row.

 

You could confirm this quickly by providing an alternate result in your measure, such as below.

 

AMT_ON_HAND_SGD_ = Divide(SUMX(INVC, INVC[UNIT_COST]*INVC[QTY_On Hand]), 'RATE'[_rate], "test alternate result")

 


https://docs.microsoft.com/en-us/dax/divide-function-dax 

Hi eBeery

Thank you for sharing , So it is due to dievde by 0  ,it there any work aorund ?

admin11_0-1611379830286.png

 

@admin11 I think you need to re-evalutate the portion of your formula that's causing the divide by 0 error (the 'Rate'[_rate] field).  

 

What is the value you would be expecting to be used in the calculation for [_rate] in the "Total" row?  A sum of rates?  An average of rates? 

Hi eBeery

i just try to multiple the rate to get SGD currency.

admin11_0-1611384192111.png

Paul

 

What measure have you written for _rate?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

Download my PBI file from here.

Hope this helps.

Untitled.png

 

Untitled1.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi ASH

Thank you very much. 

Paul

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ash

 
_rate = SUMX(FILTER('RATE',[SOURCE]=SELECTEDVALUE('AR'[SOURCE])),[RATE])
Above is my _rate expression
 
Paul
 

Hi,

Why should we use a SUMX() function to calculate the rate.  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

No file there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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