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
CoopyJoe
Frequent Visitor

Calculated Column Value Result Repeating

I am trying to create a calculated column where I simply multiply two values together originating from two different tables. The column should equal $ Adjustment multiplied by Unit Quantity to equal Commisson. My results are repeating rows with the same value, but they should be different. I have attached a screenshot of my DAX formula and the columns I am working with. Thanks!

 

issue.JPG

DAX commision.JPG

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @CoopyJoe 

Column expression:

Column = [Adjustment]*RELATED(Table2[Unit Quantity])
vxiaotang_0-1653977268575.png

measure expression:

Commission = [Unit Quantity]*MIN(Commission[Adjustment])
vxiaotang_1-1653977318374.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-xiaotang
Community Support
Community Support

Hi @CoopyJoe 

Column expression:

Column = [Adjustment]*RELATED(Table2[Unit Quantity])
vxiaotang_0-1653977268575.png

measure expression:

Commission = [Unit Quantity]*MIN(Commission[Adjustment])
vxiaotang_1-1653977318374.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

Write that formula as a calculated column formula (not a measure)


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

As @ribisht17 suggests, the RELATED function is likely useful here. Something like this:

RELATED ( Product[Quantity] ) * Commission[$ Adjustment]

 This makes some assumptions about how the tables are related though, so I can't guarantee it'll work without seeing how your tables are structured and related to each other.

ribisht17
Super User
Super User

@CoopyJoe 

 

Please refer to this one Solved: DAX multiply two columns in separate tables - Microsoft Power BI Community

>>RELATED function

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

CoopyJoe
Frequent Visitor

@HenriqueReis yes, they are both correct.

HenriqueReis
Resolver I
Resolver I

Hi,

 

The type of the columns are correct? (number)

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.