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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MikeKKK
Frequent Visitor

SAP BW Query folding - filter by text

I am pulling some data from SAP BW andtry to achieve query folding as possible as I could.

 

I try to filter a column (Work Operation Center) by string that contains "/MA" and "/MB" but this step cannot be query-folded.  The whole datasets has probably tens of thousands of rows, with only a few hundres rows (those /MA and /MB) are required.  It is not efficient to pull the entire dataset into Power BI and before filtering. 

 

Is there any alternative I can use?

 

MikeKKK_1-1643782458935.png

 

 

2 REPLIES 2
MikeKKK
Frequent Visitor

Thanks @AlexisOlson   It does not fold with one Text.Contains function. I guess transformation like Text.Contains cannot be fold with SAP BW.

 

I am not familiar with MDX, so I hope to find a solution using M query,

AlexisOlson
Super User
Super User

It seems like it should be able to handle that. Will it fold if you have just one Text.Contains function (remove the second one)?

 

If you can't get it to fold, then one possibility is to connect using a query string. I don't know much about SAP BW, but this documentation suggests to me that it's possible to use an MDX statement for a query string.
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-sap-bw-connector

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors