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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

how to subtraction between two column and make graph

i have table  name called master . My data sheet looks like 

Reductionbucket    Month      valueMonth         valueAc

NewMatral                Oct           -0.71

NewMatral                AcOct                                        0.33

Scrap                          Oct            0.11

Scrap                         AcOct                                        0.33

Supply                         Oct          0.55

 Supply                     AcOct                                        0.22

 

i want to subraction value from               valueAc - valueMonth 

 

Now i want value like 

  Reductionbucket                     variation           

 NewMatral                                    -0.4

  Scrap                                           -0.22

  supply                                          0.33

 

 

Toal                                                0.7

 

Graph design like 

 

THENNA_41_0-1636799889511.png

 

 

any dax formula . thanks in advance 

 

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous I don't get the expected numbers that you get when doing the subtraction, .33 - .11 is a positive .22 not a negative .22 for example, but should be something like this:

Measure =
  VAR __ReductionBucket = MAX('Table'[Reductionbucket])
  VAR __ValueMonth = MAX('Table'[valueMonth])
  VAR __ValueAC = MAX('Table'[valueAc])
RETURN
  __ValueAC - ValueMonth


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Anonymous I don't get the expected numbers that you get when doing the subtraction, .33 - .11 is a positive .22 not a negative .22 for example, but should be something like this:

Measure =
  VAR __ReductionBucket = MAX('Table'[Reductionbucket])
  VAR __ValueMonth = MAX('Table'[valueMonth])
  VAR __ValueAC = MAX('Table'[valueAc])
RETURN
  __ValueAC - ValueMonth


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler  thank you . let me check 

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.