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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
carmel_owen
Frequent Visitor

my column total isn't working- as a measure, or as a total on the column either

Hi, I want to sum a column. The column- 'Base Amount' when I summarize in a visual gives the incorrect total (column total should be -£2,823) and I have also created a measure to give me this total which is:

Base Amount Suppliers = CALCULATE(SUM('fact Accounting'[Base Amount]),'Supplier'[Account Code])
This is also giving the wrong total. I thought it would be a simple calculation, but have I oversimplified it, is there something I have missed here? Is it to do with the negative values? I have hunted through the forum and tried using some other calculated measures such as HASONEFILTER, but can't get any closer. Can anyone suggest a solution and help me understand where i've gone wrong?
 
carmel_owen_0-1693307350748.png
1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @carmel_owen ,

 

[Base Amout] from your screenshot is a column and the total sum of [Base Amout] is incorrect, right?

If the total of the column in your Power BI visual is wrong, there might be a few possible reasons:

You used a calculated measure instead of a calculated column. Measures apply the formula on the total instead of adding up the values of each row.
You did not consider the context and filters that affect the total. The total is calculated based on the visible rows and columns in the visual, not the underlying data.
Are the columns in your visual from different tables or the same table? It may be due to relationships that caused the wrong total.

Have you tried creating the simplest visual to see if total is correct? It's like below

vstephenmsft_0-1693465914446.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @carmel_owen ,

 

[Base Amout] from your screenshot is a column and the total sum of [Base Amout] is incorrect, right?

If the total of the column in your Power BI visual is wrong, there might be a few possible reasons:

You used a calculated measure instead of a calculated column. Measures apply the formula on the total instead of adding up the values of each row.
You did not consider the context and filters that affect the total. The total is calculated based on the visible rows and columns in the visual, not the underlying data.
Are the columns in your visual from different tables or the same table? It may be due to relationships that caused the wrong total.

Have you tried creating the simplest visual to see if total is correct? It's like below

vstephenmsft_0-1693465914446.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

miTutorials
Super User
Super User

Is there a reason why you are passing a filter ? Just the below measure should help you get the total.

 

Base Amount Suppliers = CALCULATE(SUM('fact Accounting'[Base Amount]))

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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