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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ianboothman84
Helper II
Helper II

Total of a measure

Good afternoon 

 

I am having trouble showing the total of a measure in a table. I have tried sumx and having no joy. The total value in Gross bonus is showing £4924 where it should read £3603.10.

The Gorss bonus column is a measurement 

 

Can anyone help please 🙏

 

16242810061848779816773175906310.jpg

1 ACCEPTED SOLUTION
v-yetao1-msft
Community Support
Community Support

Hi @ianboothman84 

SUMX() can be used to sum measure .I create a sample you can refer to it .

Original data :

Ailsamsft_0-1624429129204.png

Then create a measure to sum the value by name.

sum by name = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Name]))

Return value :

Ailsamsft_1-1624429129205.png

At last ,create a column to sum the measure [sum by name]:

Column = SUMX('Table',[sum by name])

The final effect is as shown :

Ailsamsft_2-1624429129207.png

I have attached my pbix file ,you can refer to it .

 

Best Regards

Community Support Team _ Ailsa 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

3 REPLIES 3
v-yetao1-msft
Community Support
Community Support

Hi @ianboothman84 

SUMX() can be used to sum measure .I create a sample you can refer to it .

Original data :

Ailsamsft_0-1624429129204.png

Then create a measure to sum the value by name.

sum by name = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Name]))

Return value :

Ailsamsft_1-1624429129205.png

At last ,create a column to sum the measure [sum by name]:

Column = SUMX('Table',[sum by name])

The final effect is as shown :

Ailsamsft_2-1624429129207.png

I have attached my pbix file ,you can refer to it .

 

Best Regards

Community Support Team _ Ailsa Tao

 

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

 

amitchandak
Super User
Super User

@ianboothman84 , this should not happen if it is a sum of a simple column. Usually happen with measure that uses row context

 

refer this

https://www.youtube.com/watch?v=ufHOOLdi_jk

 

or

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Hello @amitchandak the column is actually a measurement. I need the total of that measure 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.