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
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!




Hi Mani

I am still getting total amount =0

ebeery
Solution Sage
Solution Sage

@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/

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
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.