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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
M_SBS_6
Helper V
Helper V

Subtract values from same column

 

Hi, Is there any calculation that I can do in a matrix table that would allow me to subtract one value in a column by another value in the same column? 

 

I have attempted to do here but the values don't change:

 

(if(apps[curr_month] = "Yes" && 'apps'[app_cat] = "YTL", 'apps'[amount]

-

if(apps[curr_month] = "Yes" && 'apps'[app_cat] = "INT", 'apps'[amount]

 

Example current output 

 

App_cat Jan

YTL.       40000

INT.        100000

 

Output I'm trying to achieve. The INT value takes the 10000 from the above table and subtracts the value for YTL.

 

App_cat  Jan

YTL.         40000

INT.          60000

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Assuming Amount is a measure that you have already written, write this measure

Measure = [Amount]-calculate([Amount],'apps'[app_cat]="YTL")


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for your suggestion. I have tried this measure but all that seems to happen is my value for "YTL" returns a 0. 

You are welcome.  What happens to the INT value?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

The same value remains, 100000. 

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.