ReportPortal
ReportPortal
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ReportPortal General Forum
 Report Portal General Issues
 Filtering by comparing dimension values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dbooth

United Kingdom
69 Posts

Posted - 10/15/2012 :  02:57:38  Show Profile  Reply with Quote
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'?

admin

1637 Posts

Posted - 10/15/2012 :  03:48:23  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
ReportPortal © 2000-2002 Snitz Communications Go To Top Of Page