Forum Discussion
Stuck: Add 2 Columns from SharePoint into Service Data Model
- 2 years ago
Whether or not you need to update the model depends on how the query was done. Usually one of the first query steps is a "remove other columns" where you choose what to keep - if it was built that way, then you would need to edit that step to pull in the new columns. The query caches, so if you don't see changes you'll want to refresh the query.
By default, any columns added to a list will be available in the query editor. The default behavior is to pull all the back-end columns, so not based on a specific view, but it can be set up that way if someone went out of their way to do it.
Any time you're changing columns, you will temporarily break something, so work on a local copy first - you just have to go back and replace references. You can minimize it somewhat by setting the column names to be the same as the old ones in the model, but usually there's a thing or two you need to go back and fix...
If you're working on a shared dataset, make sure to take a good look at any other reports referencing it. If you want to test things, you can take copies of them and stick them in your personal workspace while you work out the details and make sure everything works, then publish over the old ones in the original workspace when you're done. For the child reports you can modify which dataset they're linked to, so you can swap the copies to point to the dev model in your personal workspace while you work on it, then publish over the model.
Hi CalebD ,
Regarding your question, you can first create a new report using Power BI Desktop, connect to the 'SharePoint Online List' and then use Power Query to remove the columns you don't need. Then download the original report from Power BI Service to your desktop and copy the visual objects from the original report to the newly created report. Finally, upload the report to Power BI Service.
Or you can create the semantic model you need in Power BI Desktop and then publish it to Power BI Service to rebind the report's semantic model using the APIs.
Reports - Rebind Report In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
- CalebD2 years agoRegular Visitor
Thanks for that info. Unfortunately the report and data model contain too many custom columns/calculations & replationships to make that feasible. I'm unable to create the same relationships between the new table from 'SharePoint Online List' and the rest of the data model. Is there absolutely no way to edit the original table connection to include the additional two columns. These columns exist in the same default view as the rest of the SharePoint List. What is the reason they won't propagate to the the rest of the model after being added to default view? Surely there is a better way to do this, no?
- CalebD2 years agoRegular Visitor
If this were an import from excel for example and a column was added to the source *.xlsx, a data refresh would scan the file and add the column to the table in PBI. Is there not similar behavior for this w/ SharePoint? Does adding columns to the default view of SP normally propagate?