Creating a trial balance

DWig

Board Regular
Joined
Sep 26, 2012
Messages
77
Hey all, I'm back with another one. I'm trying to create a trial balance measure in DAX.

=if(isblank(sum(GLSummary[Debit])-sum(GLSummary[Credit])),0,sum(GLSummary[Debit])-sum(GLSummary[Credit]))

I get the error message "Could not add the field "MeasureX" to the PivotTable because the formula is invalid."

I'm pretty confused at this point. Any insight would be greatly appreciated.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi, fundamentally your measure looks fine, I suspect you are experiencing is a PowerPivot idiosyncracy.

There are circumstances where I see this error, usually if I am creating a measure in an already complex report - a save/close/reopen usually does the trick however there are times when the measure I have created has 'disappeared'.

If you just want the zero for presentational purposes I would be tempted to use the Pivot table option to display zero instead of blanks:

Foremptycells_zps0581d66d.jpg




Jacob
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,947
Messages
6,175,563
Members
452,652
Latest member
eduedu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top