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
abc_777
Post Prodigy
Post Prodigy

Two column from two different field to multiple

I want to multiple one column table with one of my measure

In my Measure I do Quantity * Unit Price and these column are in same table

 

I do Average, MIN, and MAX but its giving me wrong answer

 

Result= Measure * AVERAGE(Table B [Column])
Result= Measure * MIN(Table B [Column])
Result= Measure * MAX(Table B [Column])
 
but here if you give me solution how to multiple two column from two different table I thing it will work. (Without MIN, MAX, Average)
what is the solution
 
Table A

12

3
4
5
6
14
7
Multiple *
Table B

3

14
15
2
5
8
5
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@abc_777 , When you do the product of two numbers, you need to do it at row level or some common group level.

 

You need use values or summarize from same column

Tab has [Column] common from A and B Joined on column

 

example 

sumx( values(Tab[Column]), calculate(Sum(TableA[Value]) * Sum(TableB[Value])))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@abc_777 , When you do the product of two numbers, you need to do it at row level or some common group level.

 

You need use values or summarize from same column

Tab has [Column] common from A and B Joined on column

 

example 

sumx( values(Tab[Column]), calculate(Sum(TableA[Value]) * Sum(TableB[Value])))

thanks amit, actually i had relation or data modeling issue. Fixed it. thank you so much. I also keep this calculation in my note. 

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.