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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
GofretPowerBi
Regular Visitor

Matrix Column Subtotal showing incorrect values

InkedScreenshot (37).jpgScreenshot (38).png
Hello everyone, I am getting the wrong values in subtotals in power bi. I tried various solutions that I saw on the forum but the result did not change. Stock cogs formula invoice qty * avg suc . Invoice qty and stock unit cost are linked via date and main material list. It gives correct results when looking at the goods one by one, but it gives wrong results in column total and row total, and the difference is too much. How can I fix this problem? Thank you.

3 REPLIES 3
GofretPowerBi
Regular Visitor

Coming from the Qty direct sales report it's not a calculated measure. Average of unit prices from stock in avg. I'm new to Power bi, I would appreciate it if you could explain the solution in a little more detail.

amitchandak
Super User
Super User

@GofretPowerBi , if those are two measures then you need to have a like with all row columns  

 

Sumx(summarize(Table, Table[Row COlumn1], Table[Row Column2], "_1", [qty] * [avg]), [_1])

 

you can use fact  as a table and dim column in columns of summarize

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Coming from the Qty direct sales report it's not a calculated measure. Average of unit prices from stock in avg. I'm new to Power bi, I would appreciate it if you could explain the solution in a little more detail.

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.