Forum Discussion
DAX Across Multiple Many-to-Many Table Relationships
- 7 years ago
Hi Anonymous
You may create 2 measures as below:
Measure = SUM(TableA[Activity Amount])*SUM(TableB[Flow Multiplier])*SUM(TableC[Impact Multiplier])
Measure 2 = SUMX(TableB,[Measure])
Regards,
Hi Anonymous
It seems you may create more and more relationships and then create the measure.If it is not your case,please explain more about your expected output with your sample data.
Measure = SUM(TableA[Activity Amount])*SUM(TableB[Flow Multiplier])*SUM(TableC[Impact Multiplier])
Regards,
- Anonymous7 years agoNot applicable
Hi v-cherch-msft , thank you for your response.
That makes sense and that is how I set it up as well and that DAX is working.
Can I please ask just some direction with the below, still learning DAX. So in Excel, I have the below data. For the Total Impact by my clients I have the formula in Cell B16 with the following formula :
=(C8*I8*O8)+(C8*I9*O10)+(C9*I10*O8)+(C9*I11*O10)+(C8*I8*O9)+(C8*I9*O11)+(C9*I10*O9)+(C9*I11*O11)
So basically I multiply the Activity Amount In table A with the corresponding activities flow multiplier in Table B and with the corresponding Impact Multiplier in Table C. I cannot replicate my answer in Excel in Power BI.
- v-cherch-msft7 years ago
Microsoft Employee
Hi Anonymous
You may create 2 measures as below:
Measure = SUM(TableA[Activity Amount])*SUM(TableB[Flow Multiplier])*SUM(TableC[Impact Multiplier])
Measure 2 = SUMX(TableB,[Measure])
Regards,
- eeew005 years ago
Helper I
Did the trick! Simple easy solution! 🙂