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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.