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
kintela
Helper II
Helper II

Measure calculate bad totals

Hi

 

I'm trying to show a report with the certifications of the projects in my ERP SAP Business One where I have 2 companies

 

I have this relationships

 

captura.jpg

 

That is, head and details of the invoices of the FULCRUM companie and SERS Companie.

 

Then I have created the measures

 

CertificadoFULCRUM = SUMX(DetalleCertificacionesFULCRUM;DetalleCertificacionesFULCRUM[ImporteSinIVA])

CertificadoSERS = SUMX(DetalleCertificacionesSERS;DetalleCertificacionesSERS[ImporteSinIVA])

CertificadoTotal = [CertificadoFULCRUM]+[CertificadoSERS]

 

So I create my Report and I add the fields Proyecto.ID, Proyecto.Name and CertificadoTotal measure

 

But in the first Project I see an error

 

captura.jpg

 

If I compare this value with the sum of invoices real in the origin SQL

 

IN FULCRUM companie

captura.jpg

That sumes 463.879,68€

 

In SERS comopanie

 

captura.jpg

That sumes 0

 

In fact If I create this report

 

captura.jpg

 

I get the correct value

 

So the measure what is calculating???

 

Regards

 

 

 

 

5 REPLIES 5
Vvelarde
Community Champion
Community Champion

@kintela

 

Hi, have a question : why are using SumX? Maybe you can try with Sum and Calculate.

 




Lima - Peru

@Vvelarde

 

Hi,

 

I have changed SUMX by SUM with the same result

 

regards

Vvelarde
Community Champion
Community Champion

@kintela

 

Please add the measure separates in your first report to see what measure is failing or both.




Lima - Peru

@Vvelarde

 

If I use a calculate column the value is correct

 

captura.jpg

 

But I don`t know why the measure calculates that value

 

Regards

@Vvelarde

 

captura.jpg

 

CertificadoFULCRUM = SUM(DetalleCertificacionesFULCRUM[ImporteSinIVA])

CertificadoSERS = SUM(DetalleCertificacionesSERS[ImporteSinIVA])

CertificadoTotal = [CertificadoFULCRUM]+[CertificadoSERS]

 

captura.jpg

 

If I calculate in T-SQL

 

captura.jpg

 

¿¿¿???

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.