New column from SQL connection not visible in Fields pane - powerbi

I connect Power BI to database using Sql.Database(server, database, [Query=select * from view_on_database"]) in PowerQuery Editor.
I did ALTER VIEW in MS SQL Server which resulted in adding a new column to the view.
I did not make any changes in Sql.Database(), the name of the view remained the same as before.
The problem is that this new column is visible in PowerQuery Editor but after refresh preview and clicking Close&Apply nothing happens, there are no changes in Fields pane, I can't see my new column there.
What may be the reason of that?

Related

After deleting columns in view/table of snowflake how to update the reference in powerbi

This is a duplicate question of Snowflake SQL Compilation Error: View Definition Declared but view Query Produced
It doesn't get satisfactory answer. Also here I am deleting column instead of adding. For adding column there is workaround (mentioned below) but it doesn't work when deleting column.
I am using snowflake for data storage and cleaning and powerbi desktop for creating charts. On powerbi I have sourced a view from snowflake as direct query. I have created a few charts. 2 of the columns originally presented in the snowflake view are not being used. So I deleted this from the view. Now it is showing error. .
What is a proper way to adapt the powerbi to change made in this type of change in source?
I have tried following:
deleted the table in powerbi and sourced it again.
In power query editor tried to refresh the preview. This step worked when I added column in view instead of deleting
In power query editor deleted the navigation and again created it and choose required 15 columns using home -> 'choose columns'
The table in power query editor shows the data but it shows error when doing refresh preview and in charts.

How can I add new fields from Power BI to existing PowerApps that's integrated using PowerBIIntegration?

My initial requirements was to create a PowerApp that's integrated with Power BI using one of the columns (say col1) from tables used in Power BI report. I implemented this and published the app.
Now, the requirements have changed and the request is for an additional column (say col2) in the same app. How can I add an additional new field that can somehow show under PowerBIIntegration.Data.col2?
I didn't find any documentation or reference for the same. In past, I have built PowerApps with multiple columns but not sure how to add new column to existing PowerApps when integrated with Power BI.
I had the same issue, what you need to do is edit the power app from the PowerBI file or published version too.
Steps:
Open the PowerBI file or the published file with clicking on edit
Select your existing PowerApp visual
Add the new columns by checking the new column check boxes per usual
Then hover over the PowerApp Visual and click on on the three dots that appear in the top right of the powerApp visual, and select Edit,
This will launch PowerApp studio page so you can edit the app
Using this method will also connect your app to the live data set from the PowerBIIntegration data set.
source text:
"If you change the data fields associated with the visual, you will need to edit the app from Power BI service to make sure that the changes are propagated to PowerApps. You will observe unexpected behavior if the app is not edited from Power BI service to make sure that the new fields from Power BI reflect in the app."
https://powerapps.microsoft.com/et-ee/blog/powerbi-powerapps-visual/

Creating a Tabular table based on a query and not a physical table in SSDT

I've created a tabular model in Power BI and now I'd like to create that same model in Azure Analysis Services, using Visual Studio 2017 and SSDT. Some of my tables in my Power BI model have a SQL query as the source and not a physical table or view. However, in SSDT, when I attempt to add a new table to my model I'm not given the choice of entering a SQL query. It seems I have to either select a physical table or a view.
In SSDT is it not possible to add a table to my model based on a SQL query?
On the top menu bar, go to Model then Existing Connections. After this press Open and select the second radio button, "Write a query that will specify the data to import." If you're accessing an object that's not in the database used as the Initial Catalog in the connection string then the three part naming convention (Database.Schema.Table) is necessary.

How to render report charts after filters are applied in PoweBI

Normally in BI tools, I open a report page, see empty tables, their column names, and empty charts. I select some filters from header place and click on the View button to query report and see the result.
But in PowerBI, when I open a published report page, I see a completely rendered report. If I want to apply a date range, I have to run report again. In this way, my report query runs twice, but I don't want to spend my CPU power on the initial rendered full report with data.
How can I prepare reports and publish in PowerBI, which End users may see an empty page or empty charts? The report must be displayed with data only if the end-user selects the filters and click on any apply button.
Q: How to render report charts after filters are applied in PowerBI?
A: Bookmarks
Yes, even empty reports can easily be done using the feature in Power Bi Desktop. The idea behind a Power Bi's bookmark is that it will remember or preserve your report page visuals in any filtered state.
So, to get the empty report style, set your filters or slicers so that no results are displayed in your report page, then save things as a bookmark. Click Add in the bookmarks pane, and name it to something you will remember.
Then on the main index page for your reports, link to your report using that bookmark to your report with empty results.
Example
Turn on bookmarks by clicking the bookmarks pane checkbox under the view menu:
Note: If you are using a version prior to March 2018, the bookmarks are a preview feature and might not be found in the view menu.
For the following report data:
The below report which displays song data in a table, number of songs in the card on the right and a date slicer below. Note the date range intersects some of the song dates in the data and these are the songs displayed in the reports table and card:
If you then enter in a dates into the slicer (12/31/1970) that do not intersect the dates in the table, this will zero out the report:
Then you go to the bookmarks pane and Click the Add button at the top as Bookmark 1. Right-click and rename to "Blank Song Report".
Now anywhere in your presentation, you can link back to a blank song report using this "Blank Song Report" bookmark. Being able to save reports in a certain state is a powerful feature and you can achieve this through Bookmarks.
re: CPU power
All CPU power spent on Power Bi Reports is on the client side of things. If the reports are run inside of Power Bi Desktop that is in a program on the users computer. If the report is served from Power Bi service or from Power Bi Report Server the users browser will be running and rendering the report via JavaScript. So there is no need to worry about "CPU spend", because it will all be on the client side.

Missing data fields from tables in Power BI

I am Using PowerBI Desktop Direct Query on SQL database
When the data is loaded into PowerBI Desktop I can see that there are certain fields missing from the table. When I view in SQL Server Manager Studio I can see the entire table.
Is there a known reason why all fields in the table would not be returned?
Check in the Query Editor window (hit Edit Queries) - steps can be added to any Query to remove columns, or specify a selected set of columns.
It could also be that the columns were added to the SQL table after the Power BI Query was built. For that scenario you just need to use Refresh Preview in the Query Editor window and they will flow through to the Power BI table.