web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Mdx Query Not returning Value

(0) ShareShare
ReportReport
Posted on by 155

Hi,

  I have written some mdx query.

Its executing .Its not throughing any error .Its not returning any value

 SELECT NON EMPTY { [Measures].[SJLLineAmount], [Measures].[QTY] }
 ON COLUMNS, NON EMPTY { ([SBU].[SBUDes].[SBUDes].ALLMEMBERS *
 [Marketing Unit].[MKU].[MKU].ALLMEMBERS *
 [Function].[Funct].[Funct].ALLMEMBERS *
[Sales orders].[Sales orders].[Sales orders].ALLMEMBERS *
[Sales orders].[CreatedDatetime].[CreatedDatetime].ALLMEMBERS *
 [Sales orders].[SalesTableConfirmId].[SalesTableConfirmId].ALLMEMBERS *
 [Sales orders].[SalesTableEngNo].[SalesTableEngNo].ALLMEMBERS *
 [ServiceJournalLine1].[POSTEDDATE].[POSTEDDATE].ALLMEMBERS *
 [Sales orders].[SalesTableChasisNum].[SalesTableChasisNum].ALLMEMBERS *
 [Sales orders].[SalesTableDeliverycity].[SalesTableDeliverycity].ALLMEMBERS *
 [Sales orders].[SalesTableDeliveryName].[SalesTableDeliveryName].ALLMEMBERS *
 [Sales orders].[SalesTableKMReading].[SalesTableKMReading].ALLMEMBERS *
 [Sales orders].[SalesTableRegNo].[SalesTableRegNo].ALLMEMBERS *
 [Sales orders].[SalesTableSalesResponsible].[SalesTableSalesResponsible].ALLMEMBERS *
 [Sales orders].[SalesTableServiceTypeGroup].[SalesTableServiceTypeGroup].ALLMEMBERS *
 [Items].[InventTableItemType].[InventTableItemType].ALLMEMBERS *
 [Items].[ITEMNAME].[ITEMNAME].ALLMEMBERS *
 [Items].[Items].[Items].ALLMEMBERS *
 [Service Journal Table].[SJTAccountNum].[SJTAccountNum].ALLMEMBERS ) }
  DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM
( SELECT
 (
STRTOMEMBER("[LEDGERPERIODTIMEDIMENSION].[Hierarchy].[Ledger period time dimension].&
[" + @Company + "]&[" + format(CDate(@StartDate),"yyyy-MM-dd") + "T00:00:00].PARENT")
: STRTOMEMBER("[LEDGERPERIODTIMEDIMENSION].[Hierarchy].[Ledger period time dimension].
&[" + @Company + "]&[" + format(CDate(@EndDate),"yyyy-MM-dd") + "T00:00:00].PARENT")
)
ON COLUMNS  FROM [WarrantyCube])
WHERE ( [Sales orders].[SalesTableJobOrder].&[1],
[Item groups].[InventItemGroupAutoMobile].&[0],STRTOMEMBER("[SBU].[SBUDes].&[" + @SBU + "]") ,
STRTOMEMBER("[Marketing Unit].[MKU].&[" + @MKU + "]"),
STRTOMEMBER("[Function].[Funct].&[" + @Function + "]") )

Its not returning any value.

Can anybody tell me what is the problem.

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans