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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Measure showing wrong subtotal

HI, 

I have measure that shows wrong subtotal when placed in matrix visual. I have one Payment table with CaseID (not unique), Value, InvoiceDate. Other Invoice table has CaseID (not unique), Value, PaymentReceivedDate.

When I place measure in matrix with CaseID rows show correct measure results, but subtotals do not. 

 

PBI file with sample

So 

UpsaleAmount:=

VAR InvoiceAmount=
CALCULATE(
SUM(InvoiceTable[InvoiceAmount],
USERELATIONSHIP(InvoiceTable[InvoiceDate], Calendar[Date])
)

VAR PaymentReceivedAmount=
CALCULATE(
SUM(PaymentTable[PaymentReceivedAmount]),
USERELATIONHIP(PaymentTable[PaymentReceivedDate], Calendar[Date])
)

RETURN

IF(InvoiceAmount<PaymentReceivedAmount, 
PaymentReceivedAmount - InvoiceAmount, 
BLANK())

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for effort, solution to problem is at this link Final Word On Measure Totals.

View solution in original post

4 REPLIES 4
Brysonds
Helper III
Helper III

When I exported the matrix to .csv from your Power BI app, the column totals matched what you are showing in Power BI. 

Is there any chance some of the cells in excel weren't being picked up?


Capture.JPG

 

Anonymous
Not applicable

Check columns named 13_TI_Total Payments Received and 12_Upsale_Total Payments Received. This is where error shows.

Anonymous
Not applicable

I have tried placing all transactions into one table and doing calculations over them, but I just do not have idea how to solve this.

Anonymous
Not applicable

Thanks for effort, solution to problem is at this link Final Word On Measure Totals.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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