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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
irnm8dn
Post Prodigy
Post Prodigy

Dax Help "constant" multiplier

I have a column in my dataset that has the prices of particular items.  I would like to create a calculation that takes this price and multiplies it by 20%, adding the 20% as additional margin to the price of the item.

 

i.e. 

 

$1.00 * [Margin) = $1.20

 

Looking for some quick DAX help on this...

 

Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

To add to @v-ljerr-msft idea.  Create a measure called "Margin" and assign the 20% value to it.  This would look like

MARGIN = 0.2

Now do what was suggested by creating a column/measure that uses the formula:

NewPrice = 'YourTable'[Price] * (1 + [Margin])

 

View solution in original post

2 REPLIES 2
v-ljerr-msft
Employee
Employee

Hi @irnm8dn,

 

According to your description above, I just assume you have table called "Table1" like below.

 

t2.PNG

 

Then you should be able to use the formula below to add a calculate column to add the 20% as additional margin to the price of the item. Smiley Happy

Column = Table1[Price] * (1 + 0.2)

c3.PNG

 

Regards

Anonymous
Not applicable

To add to @v-ljerr-msft idea.  Create a measure called "Margin" and assign the 20% value to it.  This would look like

MARGIN = 0.2

Now do what was suggested by creating a column/measure that uses the formula:

NewPrice = 'YourTable'[Price] * (1 + [Margin])

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.