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 Community,
I have this data in the above format of a matrix representation. But the total that is getting calculated and displayed is not correct. Can anyone help me out with this as to why the calculation is going wrong? The bottom most row is showing the total for all the above rows. The same issue lies with both the columns.
Hi @ssai ,
the filter context in the "Total" line is different than in the matrix itself, depending on the calculation you execute the total is consequently not necessarily the sum of the individual values.
You will need to sum up all values in a iteration.
You will find several articles / content about this bevaiviour in the forum and elsewhere, for example https://www.youtube.com/watch?v=dgwsk2fjWLc
If you share the code and some infos of your data model would be useful.
Best regards
| Cost | Count | unit cost | ||||
abcxxxxx |
| 2 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx | 187,392.00 | 105 | 1536 | ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 3 |
| ||||
abcxxxxx | 336 | 2 | 168 | ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 20 |
| ||||
abcxxxxx | 420 | 5 | 84 | ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 7 |
| ||||
abcxxxxx |
| 7 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 4 |
| ||||
abcxxxxx |
| 7 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx | 1296.00 | 6 | 216 | ||||
abcxxxxx |
| 3 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 7 |
| ||||
abcxxxxx |
| 1 |
| ||||
abcxxxxx |
| 1 |
| ||||
Total | 71,838,948.71 | 134 |
|
First of all thanks for reaching out. Below are the details.
The table above is a sample of what I was working with. The cost column is actually a measure that multiplies the unique count with the unit cost. But the total cost which is getting displayed is wrong when compared with manually computed figures.
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 |