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
Syndicate_Admin
Administrator
Administrator

Summary with measures

Hello everyone, make a measure (Total calculation), which is the product of TOTALCONTACTS * %, however in the summary table the sum is wrong, it should be 59.5 but yields 81.

Someone who can help me please

marcyhelen_0-1674162443454.png

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Syndicate_Admin 

 

You can try the following methods.

Total = 
IF (HASONEVALUE ( 'Table'[CODIGOESP] ),
    [TOTALCONTACTS] * [%],
    SUMX ( 'Table', [TOTALCONTACTS] * [%] )
)

vzhangti_0-1674178708869.png

Is this the result you expect?
Solved: wrong total of measure - Microsoft Power BI Community

 

Best Regards,

Community Support Team _Charlotte

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
Ashish_Mathur
Super User
Super User

Hi,

Assuming Total Contracts and % are measures that you have writtem try this measure

Measure = SUMX ( 'Table', [TOTALCONTACTS] * [%] )

Hope this helps. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-zhangti
Community Support
Community Support

Hi, @Syndicate_Admin 

 

You can try the following methods.

Total = 
IF (HASONEVALUE ( 'Table'[CODIGOESP] ),
    [TOTALCONTACTS] * [%],
    SUMX ( 'Table', [TOTALCONTACTS] * [%] )
)

vzhangti_0-1674178708869.png

Is this the result you expect?
Solved: wrong total of measure - Microsoft Power BI Community

 

Best Regards,

Community Support Team _Charlotte

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

chris88
Frequent Visitor

The TOTALCONTACTS (81) is multiplying by the total percent which will be 100%. So the result will always be 81.

I don't have a solution for you but there is a big discussion here you might get some use from:
Dealing with Measure Totals - Microsoft Power BI Community

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.