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