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.
Hi,
Download my PBI file from here.
Hope this helps.
@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
Proud to be a Super User!
Hi Mani
I am still getting total amount =0
@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")
Hi eBeery
Thank you for sharing , So it is due to dievde by 0 ,it there any work aorund ?
@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.
Paul
What measure have you written for _rate?
Hi ASH
Below is the link :-
Paul
Hi,
Download my PBI file from here.
Hope this helps.
Hi ASH
Thank you very much.
Paul
You are welcome.
Hi Ash
Hi,
Why should we use a SUMX() function to calculate the rate. Share the link from where i can download your PBI file.
Hi ASH
Thank you for sharing.
Above is my PBI file.
Paul
No file there.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
78 | |
75 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |