Row Header Format is Bold when no children exist

cpv

New Member
Joined
Nov 16, 2010
Messages
4
I am using a calculated column showing the level of an account and several measures to allow children to show only when necessary. However I noticed one thing - Excel Power Pivot treats all row labels within a group as row headers (bold) even though not all have children. In my mind this would be a bug, but I know that Excel does not do well with "ragged hierarchies" or hierarchies in general.

Exhibit A: normal format for 50001. 51800, 52300

exhibit_a.png


Exhibit B: 50001 is the only account that has a subaccount, yet 50001, 51800, and 52300 are all treated by Excel as row headers, meaning that it thinks that 51800 and 52300 have subaccounts (yet they don't)

exhibit_b.png



The Measure for each column contains:
VAR Val = [Measure]
VAR AccountShowRow = [[DAXP]] AccountBrowseDepth]<=[[DAXP]] AccountRowDepth]
VAR Result =
IF ( AccountShowRow, Val )
RETURN
Result

The formula itself works as expected, however the treatment of a parent with no child as a row header, does not.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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