Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.5 KB

comment-mdx-double-slash.md

File metadata and controls

57 lines (43 loc) · 1.5 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic ms.custom
(Comment) (MDX)
Comment MDX double slash
kfollis
kfollis
kfollis
02/17/2022
sql
analysis-services
reference
mdx

Comment MDX double slash

Indicates user-provided text.

Syntax

  
// Comment_Text   

Parameters

Comment_Text
The string that contains the text of the comment.

Remarks

Comments can be inserted on a separate line, nested at the end of a Multidimensional Expressions (MDX) script line, or nested within an MDX statement. The server does not evaluate the comment.

Use // for single-line comments only. Comments inserted with // are delimited by the newline character.

There is no maximum length for comments.

Examples

The following example demonstrates the use of this operator.

// This member returns the gross profit margin for product types  
// and reseller types crossjoined by year.  
SELECT   
    [Date].[Calendar].[Calendar Year].Members *  
      [Reseller].[Reseller Type].Children ON 0,  
    [Product].[Category].[Category].Members ON 1  
FROM // Select from the Adventure Works cube.  
    [Adventure Works]  
WHERE  
    [Measures].[Gross Profit Margin]  

See Also

Comment (MDX)
-- (Comment) (MDX)
MDX Operator Reference (MDX)