Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Sergiocampos
New Member

When Sum Formula goes wrong

Hello, how are you?

 

I have a small problem with a formula.

 

I have a slightly extended base on which I am performing a margin test, everything was fine until I tried the following formula:

 

i.Margin = sumx ('Final ad base', 'Final ad base' [i.cmvv] + 'Final ad base' [i.vendas])

 

the result was this:

 

Sergiocampos_0-1604089198732.png

 

Clearly the result should not be this, could someone help me fix and explain what went wrong with the formula?

 

Best Regards

 

 

 

 

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

If i.cmvv and i.vendas are columns (and not measures) in the Final ad base table, then this measure should work

='Final ad base' [i.cmvv] + 'Final ad base' [i.vendas]

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish thanks for the answer!

 

Ok, i tried it and the result is the same, pretty strange no?

 

Reggards

Is your Fam_Item column on the same table with the columns you are SUMming?  If not, what is the relationship between them?

 

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Yes, is the same file, it's only one base.

 

Farm_item is a classification of the items:

CMV another column with values;

R$ total is another column with values.

 

i tried sumx with calculate, tried also create a new column with SUMX Farm_item, tried do just the sum and still not working.

 

Best Reggard

Hi, @Sergiocampos 

What is your expected result?

Can you show the value of the column'Final ad base' [i.vendas] in the screenshot?

In addition, please check if there is something wrong with the format of the measure i.Margin.

35.png

 

 

Best Regards,
Community Support Team _ Eason

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.