cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Frequent Visitor

## Sum without using a function

Hi,

I have a problem, I used a function that multiplies the number of pieces with the value and when sum it, the value is added incorrectly, it should be 5748, while it shows 11 496 because it still uses the above-mentioned funkction, it is possible to narrow the formula only to the lowest row and then only sum? I can do it in power query, but I would like to know if it is also possible in different way.

1 ACCEPTED SOLUTION
Solution Sage

hi @Wilk89

Something like this, you need to make your measure Additive in this case. If the two tables are linked in Data model and you are using SUMX, then you can use RELATED function to get value from table on one side of relation ship.

3 REPLIES 3
Solution Sage

hi @Wilk89

Something like this, you need to make your measure Additive in this case. If the two tables are linked in Data model and you are using SUMX, then you can use RELATED function to get value from table on one side of relation ship.

Frequent Visitor

I have two different tables and unfortunately it doesn't work unless I have to nest it differently?

Value = SUMX('Table1','Table1'[Column1])*SUMX('Table2','Table2'[Column1])
Super User

Hi,

Use functions like SUMX. Example:
Data:

Incorrect:

Measure 15 = SUM('Table (23)'[Column1])*SUM('Table (23)'[Column2])

Correct:

Measure 16 = SUMX('Table (23)','Table (23)'[Column1]*'Table (23)'[Column2])

End result:

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

Proud to be a Super User!