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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Create a measure using relations and performing a multiplication

Having three tables, i need to come up with a measure that does a multiplication using values from those three tables, however making use of the existing relationships.

 

Article

IdNameValue
1aaa1
2bbb2

 

ArticleDetail1

IdArticleIdValue2
610.5
720.6

 

ArticleDetail2

IdArticleIdValue3
412
52

3

 

 

 

 

Article, ArticleDetail1 and ArticleDetail2 are linked using the Id->ArticleId columns.

I need to get Value * Value2 * Value3

So for aaa i get 1 * 0.5 * 2 = 1, for bbb i get 2 * 0.6 * 3 = 3.6

And in total, using this on a card, i would get 4.6. What does the DAX look like for this?

 

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I assume the relationship looks like below.

Please check the below picture and the attached pbix file.

Jihwan_Kim_1-1664283273684.png

 

 

 

 

Jihwan_Kim_0-1664283258079.png

 

Expected result measure: =
SUMX (
    Article,
    Article[Value]
        * SUMX ( RELATEDTABLE ( ArticleDetail1 ), ArticleDetail1[Value2] )
        * SUMX ( RELATEDTABLE ( ArticleDetail2 ), ArticleDetail2[Value3] )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
AndresOH
Frequent Visitor

Hello, how would you do this measure if you need to add an if condiction? For example, only multiply if Article Id > 2.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I assume the relationship looks like below.

Please check the below picture and the attached pbix file.

Jihwan_Kim_1-1664283273684.png

 

 

 

 

Jihwan_Kim_0-1664283258079.png

 

Expected result measure: =
SUMX (
    Article,
    Article[Value]
        * SUMX ( RELATEDTABLE ( ArticleDetail1 ), ArticleDetail1[Value2] )
        * SUMX ( RELATEDTABLE ( ArticleDetail2 ), ArticleDetail2[Value3] )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
johnt75
Super User
Super User

Are the relationships from Article one-to-many or one-to-one? If they are one-to-many, which value from the many side should the calculation use?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.