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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mahendrapal1792
Regular Visitor

DAX function for calculate net amount %

mahendrapal1792_0-1706610918106.png

can someone explain this formula i am not able to understand this 1- things 

2 ACCEPTED SOLUTIONS
zenisekd
Super User
Super User

Hi,

By having "discount"/"amount you get the "% discount". 
By having 1 - "% discount" you get the what is "net amont in %". That is % of the amont without after the discount. 

Kudos and mark as solution appreciated 🙂

 

View solution in original post

v-zhouwen-msft
Community Support
Community Support

Hi @mahendrapal1792 ,

Judging by the dax expression you provided, this is a measure that is used to calculate net sales.
First, let's sort out the relationship between sales and net sales: Net sales = sales – (Discounts, refunds, rebates, etc). If you remove the "1-" part of the expression, the expression calculates the percentage of sales as a percentage of the discount.
For example, if the total discount is 100, the sales are 1000, net sales percentage is 1-(100/1000) = 90%.
Finally, it is recommended to use the ‘Divide’ function for division.
DVIDE(numerator,denominator[,alternate_result]) If the denominator is 0, the ‘alternate_result’ is returned


Best Regards,
Wenbin Zhou
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

2 REPLIES 2
v-zhouwen-msft
Community Support
Community Support

Hi @mahendrapal1792 ,

Judging by the dax expression you provided, this is a measure that is used to calculate net sales.
First, let's sort out the relationship between sales and net sales: Net sales = sales – (Discounts, refunds, rebates, etc). If you remove the "1-" part of the expression, the expression calculates the percentage of sales as a percentage of the discount.
For example, if the total discount is 100, the sales are 1000, net sales percentage is 1-(100/1000) = 90%.
Finally, it is recommended to use the ‘Divide’ function for division.
DVIDE(numerator,denominator[,alternate_result]) If the denominator is 0, the ‘alternate_result’ is returned


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

zenisekd
Super User
Super User

Hi,

By having "discount"/"amount you get the "% discount". 
By having 1 - "% discount" you get the what is "net amont in %". That is % of the amont without after the discount. 

Kudos and mark as solution appreciated 🙂

 

Helpful resources

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