Hi all,
I have a requirement in a KPI Dashboard solution to use Bex Exceptions in a Query and this will be displayed in a Cross-Tab in DS.
The Exceptions is displayed on one set of Key Figures, but is defined on another set of Key Figures in my Query.
For a Exception to work the Key Figure that the Exception is defined on, must be displayed at run-time of the Query.
In the Dashboard, I don't want to show the Key Figures that the Exceptions is defined on, but only the Key Figures that I display the Exceptions on.
I have used the following solution to make this happen:
SAP Design Studio - Showing/Hiding Crosstab Columns with Measures with CSS and Scripting
The query is built up of 17 KPI Values, and 17 KPI Score values.
-Excpetion is displayed on 17 first KPI value Key Figures, but defined on 17 last KPI Score Key Figures
The following CSS code is used to hide the last 17 Key Figures in Query in the Cross-Tab:
.showMeasure.measureKPI .sapzencrosstab-ColumnHeaderArea td.sapzencrosstab-HeaderCellDefault:not(:nth-child(-n+17))
,.showMeasure.measureKPI .sapzencrosstab-DataArea td.sapzencrosstab-DataCellDefault:not(:nth-child(-n+17))
{display: none;}
This works perfectly up until I need to do some navigation in the Cross-tab.
I use a Hierarchy in the Cross-Tab and when I press the Expand or Collaps symbol of the Hierarchy, the 17 Key Figures that I have hidden with CSS, is suddently displayed in Cross-Tab.
I guess when the Hierarchy Nodes in the Cross-Tab is pressed, some new state of the Cross-Tab is initiated that renders my CSS code above not relevant anymore.
After using Chrome Browser and Inspect Element, I have found the following Class for the Hierarchy Nodes:
class="sapzencrosstab-HeaderCellDivHierarchy sapzencrosstab-ExpandNode sapzencrosstab-PointerCursor"
class="sapzencrosstab-HeaderCellDivHierarchy sapzencrosstab-CollapseNode sapzencrosstab-PointerCursor"
I have tried with many different variants of this in my CSS, but still not able to keep the last 17 Key Figures hidden after using the Hierarchy in Cross-Tab.
Does anybody have any good hints on how to solv this or have tried anyting like this before?
All feedback is much appreciated :-)
Regards
Oddmar