Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
640
Hide Semester and Quarter in Date Hierarchy using XAML
posted

I know this is another post but the solution shown has been using the code behind and the links give don't help.

http://help.infragistics.com/Help/NetAdvantage/WPF/2013.1/CLR4.0/html/xamPivotGrid_US_Defining_Hierarchies_And_Providing_Metadata_With_FlatData.html

I've already gone through that page before. I was more interested in doing the XAML version of what you just did in this thread for date hierarchy. Specifically renaming levels and removing the semester or the H.

http://es.infragistics.com/community/forums/t/54072.aspx

Can you shed some light on it? I've tried experimenting on this and the following just makes the grid hang:

<olap:HierarchyDescriptor SourcePropertyName="DATE_COLLECTED" HierarchyDisplayName="Collection Date" >

<olap:HierarchyDescriptor.LevelDescriptors>
<olap:HierarchyLevelDescriptor LevelName="All Periods"/>
<olap:HierarchyLevelDescriptor LevelName="Year" LevelExpressionPath="Year"/>
<olap:HierarchyLevelDescriptor LevelName="Short Quarter" LevelExpressionPath="QuarterShort()"/>
<olap:HierarchyLevelDescriptor LevelName="Short Month" LevelExpressionPath="MonthShort()"/>
<olap:HierarchyLevelDescriptor LevelName="Day" LevelExpressionPath="DATE_COLLECTED"/>
</olap:HierarchyDescriptor.LevelDescriptors>
</olap:HierarchyDescriptor>