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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
OCBB_SFAFPandA
Resolver I
Resolver I

How to create a formula to substract the total of a category

Hello,

 

I have a Sales column, and need to substract out a specific number. The other number is in a category from another sales table. How would I be able to do this?

 

I have this measure

TY Sales = (SUM(FACTS_Sales[Sales]))

I am trying to get another # something like

Sum(Facts_Category[category]="tax" 

 

Then create another sales total - sales without tax = TY sales - tax

1 ACCEPTED SOLUTION
OCBB_SFAFPandA
Resolver I
Resolver I

figured it out, just needed an equal sign. For anyone looking

 

Create a measure

 

CALCULATE( SUM(Sales[Sales]),Category[Category]="TAX")

 then create another measure to minus the sales with this new measure. 

View solution in original post

1 REPLY 1
OCBB_SFAFPandA
Resolver I
Resolver I

figured it out, just needed an equal sign. For anyone looking

 

Create a measure

 

CALCULATE( SUM(Sales[Sales]),Category[Category]="TAX")

 then create another measure to minus the sales with this new measure. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.