Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
We would like to import data into Power BI from a SAP S4HANA system that exposes data through CDS views. We have it working with OData, but would like to see if it works better if we get data directly from the underlying CDS consumption view (using Analytics.query: true annotation).
We are able to connect to the CDS view using the SAP BW connector, but the filter variables defined are not being interpreted correctly. E.g. for a date field it is defined like this:
@Consumption.filter: {
selectionType: #INTERVAL,
multipleSelections: true,
mandatory: false
}
And this works fine in a SAP tool like Analysis for Office, but in Power BI it shows as single date selections (allowing selection of multiple single dates).
When I try to put the filter on the dates in Power Query in a subsequent step, it does fold but the MDX seems suboptimal (throwing 'too much data' errors while only pulling in 200 rows.
So I am curious to see if there is anyone out there using this succesfully, to get some learnings/best practices if any.
Many thanks for reading
Bart
Hi @BartVW,
There are some best pactices I have seen few years back when our teams used the SAP connector, I'll share few here hope this may help you, try these & pls let me know if this helped.
Best Practices and Solutions for connecting SAP CDS
Adjust Annotations: Ensure the @Consumption.filter annotations in the CDS view align with Power BI's handling: (The @Consumption.filter annotation in SAP CDS views specifies how the field is filtered in tools like Analysis for Office or Power BI. By default, Power BI may interpret it differently, so fine-tuning is necessary.)
@Consumption.filter: {
selectionType: #INTERVAL,
multipleSelections: true,
mandatory: false
}
While this compromises on the interval functionality, it makes it easier to implement in Power BI.
Consider Aggregation: Use aggregation in the CDS view to limit the granularity of data pulled into Power BI.
SAP HANA Database Connector:
SAP OData Connector:
Thank you for your input @SacheeTh . I will continue to try out a few of these things, but in short term revert back to OData as this works ok except for some time outs I need to investigate with your basis team.
I was hoping someone would know from experience that there is a way for the @Consumption.filter to integrate correctly with Power BI, but so far from my research I have not seen a case where it was.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 4 | |
| 2 |