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
rehman1
Helper I
Helper I

Calculate discount

Hello all, i am super new to DAX and have been assigned a task to calculate discount based on sum of the value. forexample: The total sum of a column is 125; i want to apply 25% discount on the sum. Any help is appreciated

 

 

Thanks

1 ACCEPTED SOLUTION
Michiel
Resolver III
Resolver III

Just start with creating a measure:

Discounted Value = SUM(Column[Value]) * 0,75

View solution in original post

5 REPLIES 5
Michiel
Resolver III
Resolver III

Just start with creating a measure:

Discounted Value = SUM(Column[Value]) * 0,75

This DAX doesn't give me result of 100

That is correct, 25% of 125 is 30, so the result should be 95.

Oops, 31,25 indeed

I think you have a math error @rehman1 . 

 

25% of 125 is 31.25. so a 25% discount would give you a total of 93.75. 

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.