Forum Discussion
Calculation sumX multiplication
- 4 years ago
Hi Anonymous
Here is a sample file with the solution https://www.dropbox.com/t/obELBigMGJIPqhHdActually I have tried the same solutions and they seem to work. The thing is it won't allow me to create the hierarchy slicer with pop-up a message saying that the relationship should be One - Many. I don't know how did you create it but arbitrarily shaped slicers usually causes trouble. Using them would require the use of KEEPFILTERS. Unfortunately I failed to simulated your case but you can refer to (2) When to use KEEPFILTERS over iterators - YouTube
Following two workable solutions but using normal slicers.
i'm using a many to many relationship (power bi is not accepting to put it as 1:1); and using a hierarchy slicer, i'm chosing which value C corresponds to the 1st values (A1 & B1) ...
Anonymous
Still not 100% clear but you may try
Measure1 =
SUMX ( Table1, SUMX ( Table2, Table1[A] * Table1[B] * Table2[C] ) )- Anonymous4 years agoNot applicable
no still doesn't work, this formula gives me:
(C1+C2)*A1*B1 + (C1+C2)*A2*B2 (if i'm working with 2 values)- tamerj14 years agoCommunity Champion
Anonymous
Ok. Then please tryMeasure1 = SUMX ( Table1, Table1[A] * Table1[B] * SUM ( Table2[C] ) )- Anonymous4 years agoNot applicable
it gives the same value as the previous one