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
Jameswh91
Helper III
Helper III

Net Margins with minus figures

Hi, i'm having issues with calculataing the net margin as my cost price is showing a negative figure. Is there a formula i can so a negative product quantity shows zero cost price?

1 REPLY 1
samdthompson
Memorable Member
Memorable Member

Are you wanting to do this in power query? if so a custom column with some like :

=if [margin]<0 then [cost price] else [margin]

 

 

// if this is a solution please mark as such. Kudos always appreciated.

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.