Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Display Last Level of Hierarchy of a node Post Reply Post New Topic
Author Message
TheWatt
Newbie
Newbie


Joined: 12 Feb 2017
Location: Germany
Online Status: Offline
Posts: 1
Quote TheWatt Replybullet Topic: Display Last Level of Hierarchy of a node
    Posted: 20 Feb 2017 at 6:12am

Dear All,

my report(balance sheet) have a hierarchical structure.
The level of hierarchy differs depending on the node.

e.g
Commercials balance
Asset
fixed capital
    xxx
    bbb
current capital
    aaa
      ggg
      fff
    ccc

Initially i hide HierarchyLevel(GroupingLevel)>3

I have two groups(A and B)
Group B(Group per year/Period) show on drill down only.
My objective is that when i drill down from Group B, i showthe last level of the node
e.g show ggg if it is the last level of the node current asset

Is there a formular to help me identify the last level of a hierarchy?

Thanks in advance



Edited by TheWatt - 22 Feb 2017 at 9:24pm
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 24 Mar 2017 at 6:55am
you could, maybe, as I not sure what you trying to accomplish.

This is my idea at least;
in the correct group header put a reset like:
shared stringvar lastGroup := "";

in each group header after that put something like
shared stringvar lastGroup := "thisGroup";

then in the appropriate group footer, report back the value:
share stringvar lastGroup

you might need to put some logic into the assignment formula like
if not isnull({table.column}) then lastGroup := "this group";

HTH
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.035 seconds.