Re: Unable to select NULL with IIF in Member clause



I have modified the query to run in MDX Sample Application.

WITH
MEMBER [Measures].[PatnerUN] as '[Partner].currentmember.UniqueName'
MEMBER [Measures].[PartnerUniqueName] AS 'IIF(ISEMPTY([Measures].[Act
Amt]), NULL, [Measures].[PatnerUN])'
SELECT
NON EMPTY {[Measures].[ACT AMT], [Measures].[PartnerUniqueName]} ON
COLUMNS,
NON EMPTY {[Ledger].Children*[Partner].Members} ON ROWS
FROM Activity
WHERE ([Fund].[Fund2], [Transaction].[Investment])


In the above query,
[Partner].currentmember.UniqueName will return only
1. "All Partner" when Partner dimension has "All Levels" property set
to true.
or
2. First Member of the Partner dimension when "All Levels" property set
to false.


To get the correct Partner Unique Name, you need to include Partner
([Partner].Members) in Axis Specification.

.



Relevant Pages

  • Advice Needed on Procuring Thai Products Overseas
    ... I have decided to post the following query here as I thought it the ... As my partner is Thai, she would be running the catering/cooking side ... While we would be able to purchase a large range ... feels she would need to be able to also purchase goods from Thailand ...
    (soc.culture.thai)
  • Action URL
    ... I have a syntax issue. ... I can run the last line of this query in the ... MDX sample application and get results. ... Prev by Date: ...
    (microsoft.public.sqlserver.olap)
  • URL Action
    ... I have a syntax issue. ... I can run the last line of this query in the ... MDX sample application and get results. ... Prev by Date: ...
    (comp.databases.olap)
  • Re: sql union self-join syntax
    ... this query is designed to bring back only the records where the ... That means that in John Doe's record,>>> SignificantOtherID=8 (linking him to Jane); ... >>> partner when the partner ...
    (microsoft.public.access.queries)
  • Re: DoCmd.OpenReport
    ... If it is a query, it sounds like the query has a parameter in it, ... Another possibility is that the report contains a sort field which is not in ... the source query (typing error maybe?) ... The client selects a Partner from a drop-down list... ...
    (microsoft.public.access.formscoding)