Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi all,
I have published a pbix (lets say it sample.pbix) with complete working dataset model (tables and all relationship). This pbix has an on-premises SQL Server datasource, so I can see "Gateway connection" and "Data source credentials" from the menu "Settings" of the dataset. I can refresh the data manually from Power BI Service (app.powerbi.com) or even SSMS (SQL Server Management Studio).
Then, my objective is I want to add partition dynamically, each month. So I need to add Table.Partition and its data source programmatically using Table Object Models library. Refer to docs, I already success connected to my sample dataset, and there should be Model.Datasources property so I can reuse it for the new partition. But I found it empty (for on-premises case). So how do I add new table partition? I have tried add partition without set its Source (using class QueryPartitionSource), but still got no luck.
Thanks in advance.
Solved! Go to Solution.
Case closed.
For on-premises datasource, build partition using MPartitionSource instead QueryPartitionSource as exemplified by this sample.
Thanks all.
Case closed.
For on-premises datasource, build partition using MPartitionSource instead QueryPartitionSource as exemplified by this sample.
Thanks all.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |