ReportPortal
ReportPortal
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 ReportPortal General Forum
 Report Portal General Issues
 Filtering by comparing dimension values

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Message:

* HTML is ON
* Forum Code is OFF
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dbooth Posted - 10/15/2012 : 02:57:38
The cube contains dimensions 'Requesting Depot' and 'Warehouse', with Works Order measures. The dimensions are role-playing off a base DimWarehouse. A requesting depot can process its own works orders, or subcontract them out to a different warehouse.

Those members where the RQ depot isn't the same as the Warehouse are returned by this Named Set MDX :

FILTER( NonEmptyCrossJoin( [Requesting Depot].[Warehouses by Code].[Warehouse],
[Workshop].[Warehouses by Code].[Warehouse]
)
, [Requesting Depot].[Warehouses by Code].Properties('Name')
<> [Workshop].[Warehouses by Code].Properties('Name')
)

Can that be converted to a boolean Y/N for inclusion as a report filter called 'RQDepotEQWarehouse'?
1   L A T E S T    R E P L I E S    (Newest First)
admin Posted - 10/15/2012 : 03:48:23
Yes, you should be able to create a calculated member bases on your MDX expression and SUM or Aggregate MDX functions like:

Aggregate(
FILTER( NonEmptyCrossJoin( [Requesting Depot].[Warehouses by Code].[Warehouse],
[Workshop].[Warehouses by Code].[Warehouse]
)
, [Requesting Depot].[Warehouses by Code].Properties('Name')
<> [Workshop].[Warehouses by Code].Properties('Name')
)
)

Help on Calculated Members
http://www.reportportal.com/help/olap/calculated.htm

ReportPortal © 2000-2002 Snitz Communications Go To Top Of Page