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
jribs
Helper I
Helper I

Native Query Function with an unsupported value in SAP BW

Hey all,

 

When trying to get query folding to work using the Value.NativeQuery() function, an error is coming up that I'm having trouble deciphering considering there is not reference to it:

 

jribs_0-1620923753459.png

 

Does anyone know why this error is coming up in context of querying an SAP BW? There are plenty of examples of this function with SQL, but couldn't find anything with BW. In addition, a general tutorial in using NativeQuery with SAP BW would be a unique blessing since material is sparse. Code is below.

 

This error comes up when trying to edit an "Added Items" step in PBI:

jribs_1-1620923840093.png

 

Here is the offending Native Query line

 

= Value.NativeQuery(PM_M001,"SELECT
{
[Measures].[5KJLXASDLJK67ASDJH]
}ON 0,
NON EMPTY DISTINCT(
[PMORDER].[LEVEL01].ALLMEMBERS
)
PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME, [PMORDER].[2PMORDER], [PMORDER].[5PMORDER], [PMORDER].[20ABCINDIC], [PMORDER].[40ABCINDIC], [PMORDER].[20ACTFINISH], [PMORDER].[20ACTSTARTDT] ON 1
FROM [PM_M001/PBI_PROINIT_V2] CELL PROPERTIES VALUE", null, [EnableFolding=true])

 

1 ACCEPTED SOLUTION
watkinnc
Super User
Super User

Unfortunately, the EnableFolding parameter works only in SQL Server and Postgres.

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

View solution in original post

1 REPLY 1
watkinnc
Super User
Super User

Unfortunately, the EnableFolding parameter works only in SQL Server and Postgres.

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

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.

Top Solution Authors
Top Kudoed Authors