Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sbandaru
Regular Visitor

Invalid MDX identifier issue while connecting to SAPBW with DateKey

 

Hi all,

 

I am facing a MDX identifier issue while trying to access SAP BW cube which has key date value as mandatory parameter. I've tried with all possible date formats like MMDDYYYY,mm/dd/yyyy,mm-dd-yyyy,mm.dd.yyyy, yyyy/mm/dd etc., but couldnt resolve this issue. In a confusion whether it is power bi compatibility issue or SAPBW issue. This cube works fine with BEx analyser in Excel. As there is no date picker in powerbi i am not able to understand which date format should be used for sapbw key parameter. Kindly help me with this one.  

 

MDXIdentifier_error.png

 

Thanks & Regards,

Sudheer B.

2 REPLIES 2
v-sihou-msft
Employee
Employee

@sbandaru

 

What's the underlying MDX? Have you checked what the date member looks like? Did you use STRTOMEMBER() function to convert it into member?

 

Please format the date based on date member string so that it can be concatenated and converted into a member. For example, the date member in AdventureWorks sample is like "[Date].[Calendar].[Date].&[20050113]", so you can format your date into "yyyymmdd".

 

Regards,

 

 

@v-sihou-msft

Thanks for the response. I observed that Date member is in YYYYMMDD format. Still it is throwing same error.  As i mentioned in my post, I've  tried all possbile date formats whatever is accepted by microsoft, but couldnt fix it. 

 

In another instance, I've encountered a new problem while trying to retrieve CustomerID which is a KEY value in SAP cube. in further investigation came to know that Power bi is unable to detect KEY value from SAP BW Cube. It retrieves only TEXT Value/Label (i.e., customer name in my case)of the KEY value(customerID).  So I am in an assumption that this issue is someway related to that DATEKEY parameter as DATEKEY dont have any TEXT value in SAPBW. Also assuming that SAPBW is comparing TEXT value(date) passed as parameter from powerbi with KEYVALUE in SAPBW and returning an error. Kindly correct me if I am wrong. 

 

Thanks 

Sudhee B.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.