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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Edgar_massa
Helper II
Helper II

Divergent sum

Good afternoon sirs

I'm having problems adding a measure called "Edgar Billing", from a visual, where I disregard the column "CompanyId" and the column "vl_Tarifa_2".

In the print below, the first table is ok with the tariffs, (except the total), bringing the amounts to be invoiced from customers.

In the table below, it is showing a totally different value.

As the calculation is a column multiplied by a measure, I used a Calculate function and the MAX function to get the day's tariff.

What would you do?

 

Edgar_massa_0-1674244749021.png

 

 

 

1 REPLY 1
Anonymous
Not applicable

Hello @Edgar_massa ,

I think you can try if you wnat the correct sum of the total:

If(hasonevalue(table[company_id]),[faturamento_Edgard],sumx(values(table[company_id]),[faturamento_Edgard]))

 

This will fix your total.

 

And i dont think all is necessary in your calculation, if you already have a relationship just a simple

Max(table[vl_tarifa_2]) would do the trick

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.