dbTalk Databases Forums  

Dynamic Filter using Office Web Component - PivotTable

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Dynamic Filter using Office Web Component - PivotTable in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kam
 
Posts: n/a

Default Dynamic Filter using Office Web Component - PivotTable - 01-11-2005 , 06:11 AM






I decided a cube and using Office Web Component - PivotTable to display the
value.
and I would like to select the latest date information or the date has
greatest value.

How can I set it up the filter in OWC - PivotTable?

Reply With Quote
  #2  
Old   
Yash
 
Posts: n/a

Default RE: Dynamic Filter using Office Web Component - PivotTable - 01-13-2005 , 01:57 AM






I do it like this, in my case the date selected should be of yesterday; so i
create the uniquename as per my time dimension and set the includedmembers =
the unique name.

refer the code below; hope this helps you out.

Dim strUniqueName
strUniqueName = "[Time].[" & Year(Date-1) & "].[Quarter " &
DatePart("Q", Date - 1) & "].[" & MonthName(Month(Date-1)) & "].[" & Day(Date
- 1) & "]"
'msgbox strUniqueName

PivotTable1.ActiveView.FieldSets("[time]").Fields("Month").IncludedMembers =
Array("")
PivotTable1.ActiveView.FieldSets("[time]").Fields("Day").IncludedMembers
= Array(strUniqueName)

Regards,
Yash


"Kam" wrote:

Quote:
I decided a cube and using Office Web Component - PivotTable to display the
value.
and I would like to select the latest date information or the date has
greatest value.

How can I set it up the filter in OWC - PivotTable?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.