Forum Discussion
Audit Matrix sub-totals for troubleshooting?
PBIX File: https://drive.google.com/file/d/1j_4CrUj0fPh0xK6hnO7OZ-uIWkoP5Kdg/view?usp=sharing
In the Matrix below, two different [measures] are in the "Values" section of the visual. From an eye test, the subtotals (except for Column 2008) for the Column:[Downside (Graph)] are not directly related to the figures above/associated. For example, in 2011, as shown, the subtotal is over $11 million, whereas the largest datapoint associated is just over $9 million. In contrast, for the Column:[Actual], the figures in the sub-total row do appear to be the average of the above.
The Column:[Downside (Graph)] is not averaging. Is there a way to force the programming to result in a summary where the sub-totals are the average of the data sitting above it?
Hi mrothschild,
Taking the metric '______B - Depreciation Selected' as an example, you can modify the measure to:
______B - Depreciation Selected = //DEPRECIATION SELECTED var a= [zzDepreciation Average - Selected] return IF( HASONEVALUE('Helivalues Transaction History'[Year of Build]), a, AVERAGEX('Helivalues Transaction History',a) )You can define the calculation logic for the totals you want in the underlined section.
If you type '0', you can get:
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
2 Replies
- v-xulin-mstf
Community Support
Hi mrothschild,
Taking the metric '______B - Depreciation Selected' as an example, you can modify the measure to:
______B - Depreciation Selected = //DEPRECIATION SELECTED var a= [zzDepreciation Average - Selected] return IF( HASONEVALUE('Helivalues Transaction History'[Year of Build]), a, AVERAGEX('Helivalues Transaction History',a) )You can define the calculation logic for the totals you want in the underlined section.
If you type '0', you can get:
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
- mrothschild
Continued Contributor
Thanks so much. This structure has been so helpful in getting me past my stuck point!