cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vickyno
Frequent Visitor

Several Calculation same column DAX

Hi!

I need to calculate a colum (row by row)  with a certain amount for my report.

 

In excell I would type:

 

+(1*(Column1/Column2)-(Column1)

 

Column1 Is an amount and Column2 a percentage.

 

How do I do this in Power BI, and will it be a measure or a column?

 

Than you!

2 ACCEPTED SOLUTIONS
amitchandak
Super User IV
Super User IV

@vickyno , Try a new column like

divide([Column1],[Column2])-([Column1])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

AilleryO
Continued Contributor
Continued Contributor

Hi,

 

if your calculation is line by line, it should be a calculated column and your formula should be like :

Name of Column = (1*([NameColumn1]/[NameColumn2])-[NameColumn1]

or 

Name of Column = (1*DIVIDE([NameColumn1],[NameColumn2])-[NameColumn1]

 

In Power BI you use the name of your columns not their address (B12).
You should be help by predictive keyboard.

Tell us if it worked

View solution in original post

3 REPLIES 3
vickyno
Frequent Visitor

Thank you both! it worked fine!

AilleryO
Continued Contributor
Continued Contributor

Hi,

 

if your calculation is line by line, it should be a calculated column and your formula should be like :

Name of Column = (1*([NameColumn1]/[NameColumn2])-[NameColumn1]

or 

Name of Column = (1*DIVIDE([NameColumn1],[NameColumn2])-[NameColumn1]

 

In Power BI you use the name of your columns not their address (B12).
You should be help by predictive keyboard.

Tell us if it worked

View solution in original post

amitchandak
Super User IV
Super User IV

@vickyno , Try a new column like

divide([Column1],[Column2])-([Column1])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors