Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I can't solve the total sum issue, can you help?
I am attaching a link to the Power BI file
I will be very grateful for your help in solving the problem.
Arturas
Solved! Go to Solution.
You are welcome. If my previous reply helped, please mark it as Answer.
Hi,
I created this measure
Measure = if(ISBLANK([Unpaid Amount]),BLANK(),SUMX(VALUES('sales-payments'[Indeksas]),[Unpaid Amount]))
Hope this helps.
Hi,
Rezult blank measure
Arturas
You are welcome. If my previous reply helped, please mark it as Answer.
In the screenshot, as you can see i get the correct result.
Sorry, you are right.
Do you have any ideas why the measure total is showing correctly, but the value in the row for some customers is incorrect?
Arturas
Hi @Sarutra
What do TRUE and NO TRUE mean? What is your expected result?
Hi @Sarutra ,
The "wrong total" issue in Power BI measures is really common and usually happens because DAX calculates the total differently than the individual rows. Here’s how I’d tackle it:
Use SUMX over VALUES: This ensures your custom calculation runs at the row level for each unique Invoice (or whatever your key field is), and then adds everything up for the total. For example:
Unpaid Amount =
SUMX(
VALUES('sales payments'[Invoice NR]),
[Open Order Total] - [Payments]
)
Add HASONEVALUE logic if needed: If your calculation needs to handle both single rows and totals differently, you can use HASONEVALUE to switch logic, like this:
Unpaid Amount =
IF(
HASONEVALUE('sales payments'[Invoice NR]),
[Open Order Total] - [Payments],
SUMX(
VALUES('sales payments'[Invoice NR]),
[Open Order Total] - [Payments]
)
)
Make sure your tables are joined correctly, and there aren’t any inactive relationships that could mess up the totals. Sometimes creating a quick table with SUMMARIZE or looking at a table visual can help spot why the totals are off. If it’s still not working, feel free to share a sample PBIX file with dummy data. Sometimes it’s something small that’s easy to spot with a real example.
It's not that simple. I am attaching the measure formula.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 65 | |
| 39 | |
| 33 | |
| 23 |