SSRS Mdx query to get date format in European style dd/MM/yyyy

To get the date format in European style that is dd/MM/yyyy   then we need use Cdate function

Example:


MEMBER MyPeriod1 as CASE @Granularity      WHEN  "M" THEN  ([Date].[Hierarchy].currentmember.parent.member_caption+"/"+[Date].[Hierarchy].currentmember.member_caption)
                               else Format(CDate([Date].[Hierarchy].currentmember.member_caption),"dd/MM/yyyy")
          end

Comments

Popular posts from this blog

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces