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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jamieham
Helper II
Helper II

Subtract column from number value

I want to subtract a column from number value and dont know how to do it in DAX.

 

How would I subtract the column 'Value" from 70?

 

Value

23

14

68

12

1 ACCEPTED SOLUTION
pranit828
Community Champion
Community Champion

Hi @jamieham 

Create a measure or a new column

 

M1 = 70 - Table[Value]

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

@jamieham - The measure form is 

 

Measure = 70 - MAX('Table'[Value])

 

Assuming your visualization has the [Value] column displayed in something like a Table visualization.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@jamieham ,

Create a new column

new column = 70 -[Value]

 

This should work both in Dax and M

FarhanAhmed
Community Champion
Community Champion

Go to Modelling Tab on Top of PBI Desktop, there is an option to create New Column in Calculations

 

Create a new column in table

 

 

NewColumn = 70 - Table[Value]

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




pranit828
Community Champion
Community Champion

Hi @jamieham 

Create a measure or a new column

 

M1 = 70 - Table[Value]

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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