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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Jaco1965
Frequent Visitor

Measure Column does not Total correct

I need the Total to add the Column value, please help

 

Measure Sum Total error.JPG

1 ACCEPTED SOLUTION

Hi @Jaco1965 ,

 

In my measure I use the ";" as a separator this is related with regional settings, change it by "," and see if you are abble to use the measure.

Total_Inv_value = SUMX(Work_Detail , [Inv_Amnt])

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

13 REPLIES 13
MFelix
Super User
Super User

Hi @Jaco1965 ,

 

Being you measure a multiplication of values you need to use a SUMX formula should look something like this:

 

Inv_Amnt = SUMX(Work_Detail; Work_Detail[Work_Hrs] * R_ClassRate[Rate])

Be awar that you may need to adjust the parameters of the measure.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Some more info

 

I use the 2 tables to calculate a measure, the red one. But i do need the totals to show correct below the table

 

Measure Total 3.JPG

I also tried this

 

Measure Total 4.JPG

Hi @Jaco1965 ,

 

Believe that this is an issue regarding with the way you have your model / relationship between tables, can you share a sample file or a mockup or explain how the model is setup? (relationships, data, fields to be consider etc.)

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Mr Felix

 

Here is my file , It would be very helpfull if you can assist

https://www.dropbox.com/s/vz2mgy0wg6p8tmd/REACH%20Updated.pbix?dl=0

Hi @Jaco1965 ,

 

This as to do with the context of your measures and the way you have setup the database with the link between the Resources values and the tasks and work details (nothing is incorrect) and the measures need to be readjust to give the right result.

 

Create the following meaaures:

Already created


Inv_Amnt = sum(Work_Detail[Work_Hrs]) * Sum(R_ClassRate[Rate]) New one Total_Inv_value = SUMX(Work_Detail;[Inv_Amnt])

Then use the last one to have your final result:

sumx.png

As you can see changing the way the calculation is made the context changes and the result is correct when compared with the red highlited value.

 

Again noting wrong with your setup, I tried to make a summarized table, or a group by to use in your measure but would only create more complexity on the measures.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Check out this blog post by SQLBI

DAX 101: Summing values for the total

https://rebrand.ly/correcttotal

 


@MFelix wrote:

Hi @Jaco1965 ,

 

This as to do with the context of your measures and the way you have setup the database with the link between the Resources values and the tasks and work details (nothing is incorrect) and the measures need to be readjust to give the right result.

 

Create the following meaaures:

Already created


Inv_Amnt = sum(Work_Detail[Work_Hrs]) * Sum(R_ClassRate[Rate]) New one Total_Inv_value = SUMX(Work_Detail;[Inv_Amnt])

Then use the last one to have your final result:

sumx.png

As you can see changing the way the calculation is made the context changes and the result is correct when compared with the red highlited value.

 

Again noting wrong with your setup, I tried to make a summarized table, or a group by to use in your measure but would only create more complexity on the measures.

 

Regards,

MFelix



DAX 101: Summing values for the total (@FerrariAlberto) https://www.sqlbi.com/articles/summin...

Hi MrFelix

 

I tried that but I get error with the sumx, it odes not give me option to select the measure from list

 

Measure Total 5.JPGMeasure Total 6.JPG

Hi @Jaco1965 ,

 

In my measure I use the ";" as a separator this is related with regional settings, change it by "," and see if you are abble to use the measure.

Total_Inv_value = SUMX(Work_Detail , [Inv_Amnt])

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi MrFelix

 

You are the man. Thanks

Hi @gustavoleo ,

 

Your post is interesting however in the post there is a simple relation between dates and sales and is related with the granularity of the information, in the case of @Jaco1965  is model is not simple because he uses two dimension tables to get the calculation made and between two of them there is a bidirectionality that changes the ways tables interact.

 

That's why the easier way is to create a separate measure thar uses the first one as a parameter, giving context in different places for the total row.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Measure Total 2.JPG

 

I also tried this

 

 

Measure Sum Total error.JPGMeasure Total 1.JPG

 

I am still doing something wrong

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.