April 29, 2011 at 3:34 am
Hi,
this MDX gets its 2011-03-03T00:00:00 and 2010-03-03T00:00:00 from Report-Parameter input bay user. Problem: the database-filed, that is generated, has always a different name. In this case:
"[Measures].[Betrag Euro].[Zeitart].[Zeitart].[kumuliert].[Datum].[Jahr - Quartal - Monat - Datum].[Datum].&[2011-03-03T00:00:00]"
and I can't put the value into the report because the name of the database field is changing regarding to the user-input. Is there any AS clause? Who can Help?
Regards from Germany
Ralf
with member [Datum].[Jahr - Quartal - Monat - Datum].[Alle Datum JQMD].[Veränderung zum Vorjahr ]
as (
[Datum].[Jahr - Quartal - Monat - Datum].[Datum].&[2011-03-03T00:00:00]
-[Datum].[Jahr - Quartal - Monat - Datum].[Datum].&[2010-03-03T00:00:00])
member [Measures].[Anteiliger Jahresplan]
as [Measures].[Budget Anteilig Aktjahr], FORMAT_STRING='Standard'member [Measures].[Plan Abweichung]
as [Measures].[Anteiliger Jahresplan]-[Measures].[Saldo vs Budget], FORMAT_STRING='Standard'
select crossjoin({{[Measures].[Betrag Euro]}, {[Measures].[Saldo vs Budget]}, [Measures].[Anteiliger Jahresplan],
[Measures].[Plan Abweichung], [Measures].[Budget Gesamt Aktjahr], [Measures].[Budget Gesamt Vorjahr],
[Measures].[Überschreitung Gesamtjahr], {[Measures].[Budget Anteilig Vorjahr],
[Measures].[Budget Anteilig Aktjahr]}}, {[Zeitart].[Zeitart].[kumuliert]},
{[Datum].[Jahr - Quartal - Monat - Datum].[Datum].&[2011-03-03T00:00:00],
[Datum].[Jahr - Quartal - Monat - Datum].[Datum].&[2010-03-03T00:00:00],
[Datum].[Jahr - Quartal - Monat - Datum].[Alle Datum JQMD].[Veränderung zum Vorjahr ]})
dimension properties parent_unique_name, member_type on columns,
crossjoin([Konto HGB].[Kostenart Gruppe].levels(1).allmembers ,
[Konto HGB].[Kostenart Name].levels(1).allmembers,
[Konto HGB].[Konto Nr - Name HGB].levels(1).allmembers)
dimension properties member_name on rows from
(select ({[Konto HGB].[Konto HGB].&[81000000], [Konto HGB].[Konto HGB].&[82600000],
[Konto HGB].[Konto HGB].&[86000000], [Konto HGB].[Konto HGB].&[87000000],
[Konto HGB].[Konto HGB].&[88000000], [Konto HGB].[Konto HGB].&[89500000],
[Konto HGB].[Konto HGB].&[92000000], [Konto HGB].[Konto HGB].&[95000000]})
on columns from [Controlling])cell properties VALUE, FORMAT_STRING, FORMATTED_VALUE, LANGUAGE
April 29, 2011 at 4:38 am
Thanks guys, I solved it:
member [Datum].[Jahr - Quartal - Monat - Datum].[Alle Datum JQMD].[A] as [Datum].[Jahr - Quartal - Monat - Datum].[Datum].&[2010-03-03T00:00:00]
member [Datum].[Jahr - Quartal - Monat - Datum].[Alle Datum JQMD]. as [Datum].[Jahr - Quartal - Monat - Datum].[Datum].&[2011-03-03T00:00:00]
Regards Ralf
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy