Hi, experts,
Thanks for your kind attention.
How can we format data by a single MDX expression rather than MDX statement? (e.g. I want to format measure member A with 2 decimal places. How can we achieve this in a single MDX expression?, not in complex MDX statement).
Hope it is clear for your help.
Thanks and I am looking forward to hearing from you shortly.
With kind regards,
Yours sincerely,
Hi,
Not to sure what you mean by expression rather than MDX Statement.
In a query it might look like:
with member [measures].[Percentage Of Region Total] as
[Measures].[Charge Out]/
([Measures].[Charge Out],[Campaign].[Campaign Region Hierarchy].[All Campaign Regions]),
format_string ='#.##%'
In the calculation script another might look like
CREATE MEMBER CURRENTCUBE.[MEASURES].[Sales Rev Variance]
AS ([Measures].[Sales Revenue])-([Measures].[Sales Revenue],[Revenue Recognition Date].[Financial Year].currentmember.prevmember),
FORMAT_STRING = "£#,#",
NON_EMPTY_BEHAVIOR = { [Sales Revenue] },
VISIBLE = 1;
Hope that helps
Matt
|||Or in the MDX Script of the cube with
Code Snippet
format_string([Measures].[Discount])="#,#.00";
HANNES
|||Hi, Thanks very much, Matt and HANNES.
With kindest regards,
Yours sincerely,
No comments:
Post a Comment