cancel
Showing results 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.

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!

Announcements

#### 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

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors