Skip to main content
cancel
Showing results for 
Search instead 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.

Reply
Wilk89
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.

Zrzut ekranu 2024-03-01 142733.png

1 ACCEPTED SOLUTION
talespin
Solution Sage
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.

 

talespin_0-1709542455379.png

 

View solution in original post

3 REPLIES 3
talespin
Solution Sage
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.

 

talespin_0-1709542455379.png

 

Wilk89
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])
ValtteriN
Super User
Super User

Hi,

Use functions like SUMX. Example:
Data:

ValtteriN_0-1709304389508.png

 

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:
ValtteriN_1-1709304429403.png

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!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

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

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors