Any tool available to replace an existing Table and apply all steps - powerbi

Let's say I have a View "A" imported in powerbi as table
Very few columns is being used in the visuals from the powerbi, so in order to reduce the refresh time and sql server load I have created a new view "B" specifically for that report
Inorder to replace A with B, now I have to do everything manually, from changing Datatype in powerbi side, changing fields in visuals
Since I have retained the same name of the columns in the new view B, Is there is any tool to achieve the above in simple manner?

Related

How to create a filter in powerbi that will dynamically query the db using a SP with a parameter

I am trying to run a direct query on my DB and apply a filter input by the user. The user input would be used as a parameter for my Stored Procedure that retrieves the data I want to display to the user. The reason for running a direct query and not just refreshing the data and then the user filtering from all of that data, is that the database is really large and it would make the report file approx. 650mb in size. My idea is that with a direct query, I can pull only the data required through an indexed column that the Stored Procedure uses to filter.
Currently I was able to create a parameter in the Query editor and use it in a query function but this creates an "Invoked Function" table. If I use these results in my report essentially the user can only filter through the result I filtered in my query editor. I want the user to be the one to input that value and the report to dynamically load it.
As far as the filter field, I am using a slicer and added the search capability to it so they can type out the search value and select the result in the list. Ideally I would like a textbox that they can type the value they want and search for it.
Is this possible in PowerBI? and if so how could I accomplish this?
You have to download a separate application called Power BI Report Builder to accomplish this and create a paginated report. See Url below:
Paginated Reports

Power BI Dataflow Updates But Dataset and Reports Do Not

I am in the process of creating a dashboard in power BI with multiple people. Currently I have 4 entities in a Dataflow that move to a dataset which are then visualized in reports. I recently added a column to one of my entities that I would like to show up in a report that is already created. However, despite the column being added to the entity (it shows up when I try to create a new report), it isn't displayed in the older report. How can I get my new column to display in an already created report?
You need to get the old report, go to the Query Editor and refresh the preview for it to pick up the new column.
You may have to go through the steps to make sure it is not removed, by for example reducing the columns down via a selection. When you create a new report you can see the column as it is getting the dataflow table structure with out any history in the query. Note this is not just for Dataflows, but for most types of connection where the structure changes, for example CSV, Excel etc.
Check if the source data set is set to private by the person who published the report. Changing this might grant you access to the source dataset.

Is it possible to change OData query, via user input, in Power BI?

I need to create something, which is being used a few times a year.
I need to get the latest rows since the report was used last.
My OData endpoint allows me to modify a timespan, to limit the number of rows I get (if I get all of them, I will get 12+ million rows).
The users aren't going to be knowing anything about Power BI, and I want to avoid them having the change the query manually. What I basically want is a slicer, allowing them to input a date, which will then be parsed into the query, instead of the original value, and then update the table with the new query.
An example of a filter on the OData query, selecting all files from 2020, is this:
Files?$filter=Created%20ge%20datetime%272020-01-01T00:00:00%2b01:00%27&$select=ID,......"
If it is possible, then how would I achieve it?
Slicers can't change queries, except in DirectQuery models. And OData isn't a DirectQuery source. You can build up a dynamic query on refresh, or you can have your users refresh using PowerBI and change a Parameter.

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.

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.