Get Power Bi report data in Json format using RESTAPI? - powerbi

I want to read data of report on the server,there are api calls to get list of reports(GET api.powerbi.com/v1.0/myorg/reports{reportKey}),In the same way can get data of a report in json format using restapi?

I think in a word "No". At least not from what I am reading from the API Endpoints documentation here: https://learn.microsoft.com/en-us/rest/api/power-bi/
In the end -- I think what you really want is the data behind the report, not the visualizations - Right? Power Query is an Excel based tool (from Microsoft) that retrieves data much in the same way Power BI does. I think that may be what you want.
If you really need a JSON representation of the data from there, you can do a little "VBA" work to reformat the data you pulled in via Power Query.
Hope this helps

Related

How the datas are get in Power Bi (direct query) with a filter

I was wondering, when you get the data in power bi (with Direct Query)
And you filter the data in the Power Query Editor.(Lignes filtrées = Filtered rows)
You will get the data first then you filter the data,
or you filter the data first the you get the data?
Actually, both are data which contains different values.
PowerBI is operating data from top to bottom. So, it gets the data from Source, then navigates to the selected table, then applies filters and some other jobs.
So, getting the data first and then filtering it is meaningful because you can see all the data changes in the Edit Query page.
But getting the data after filtering it in query may also meaningful because all the filtering is handled in database and if you have a good infrastructure, your data will come faster.
And the best case approach is: "using filtering in queries is OK but don't be complex on your database queries". So, there is no correct answer for your question, you should just use a little bit of this and that depend on the quality of your data.

Creating reports for each unique value in column in PowerBI

I am trying to find an answer if it possible to automate creating powerBI reports for each unique value in one of columns(It's like filtering on whole report for one of the values and publish report than change value to next one and repeat steps for other values)? Is there any fast way to do it? I wrote program to filtering via link and clicking mouse than save links for each person to excel but i wonder if there is more reliable and faster way to do it. I am using PowerBI premium for user.
This is typically called "Report Bursting", or "Data Driven Subscriptions", and here's a walkthrough of how to do it with Power Automate and Power BI.
Why don't you leverage RLS instead of hardcoding filters?

What is difference between edit performed in query edit vs during modelling?

When I get data into Power BI I can edit the query as well as perform edit to the model.
What is difference between edit performed in query edit vs during modelling?
When you edit the query, you use Power Query, with its own Query Editor user interface. The steps you apply are recorded in the "M" language. Use Power Query to extract, transform, and finally load data into the Data Model.
Once the data is in the Data Model, you use DAX to create measures that you use in visuals. You can also use DAX to add more columns or even tables to the data model.
Whether to use Power Query or DAX to add columns or tables to the data model depends on a variety of factors. Some things are dead easy to do in Power Query, but harder to achieve with DAX, and vice versa. If you create a column with a formula that depends on a DAX measure, then you can only do that with DAX, because Power Query is not aware of the measures that are created after the load into the data model.
Power Query is very powerful, but the M code syntax is very different to the Excel formula syntax, or the VBA macro language. Learning to write advanced M code can be quite challenging.
DAX, on the other hand, behaves very similar to Excel formulas. Many Excel functions can even be used in DAX verbatim. If you know Excel, you've already got a head start on DAX and you can ease your way into it by learning additional functions and then expanding into more complex formulas.
The latter is probably the reason why many data manipulations are done in DAX, even though they could as well have been done in Power Query.
There are also some efficiencies with data storage and performance. Power Query makes use of query folding with SQL queries, for example, where its transformations are actually performed at the data source, i.e. on the SQL server side, and not in desktop client, and only the final query result is transferred to the desktop client.
Edit after comment: When the data is loaded into the data model, an algorithm processes the data and sorts it in a way that is most efficient for maximum compression and minimum storage. I don't have any concreate examples, but adding a column in Power Query will result in a smaller footprint than adding the same column with DAX. Read more about the compression algorithm VertiPaq here: https://towardsdatascience.com/inside-vertipaq-in-power-bi-compress-for-success-68b888d9d463
But apart from that, it mainly comes down to personal preference based on skill and experience.
By the way, many of your questions can be answered by reading through the Microsoft documentation, e.g. https://learn.microsoft.com/en-us/power-bi/guidance/import-modeling-data-reduction

Creating a "since last refresh" KPI?

I have a PowerBI that pulls from an excel spreadsheet a current inventory of statuses of a system, lets make it easy and say I have a single measure that reads "40% complete".
If I refresh the PowerBI dataset and it now says "60%", is there any way to have a KPI automatically show +20%? Every example I've found requires you to have another dataset that keeps the historical data, and that's not really an option in this situation. Is there any way to calculate it or store it within the PowerBI query itself?
Power BI is not designed to store historical data. This is what a database is for.
In order to calculate that 20% difference, you need to store historical data somewhere but Power BI's purpose is to connect to sources and load data and then visualize it, not to act as a data repository.

Automate the Export from Power BI to Power Point

I have a data set that it transformed in SQL Server and then sent to Power BI. The report is built to specs of marketing people so i cannot move to excel (needs to be pretty).
Has anyone set up a procedure to automate the export of a PBI report (filtered by a specific column) and then converted to PDF? To clearify, the data set has performance metrics of say 15 locations and i need a report for each location.
Steps:
1) data is loaded in aggregate
2) filter applied by location
3) calculated fields populated (charts etc.)
4) exported to PPTX then converted to PDF (would love to automate this step)
5) Need to remove links to PBI from PDF (no quick way found yet)
6) go to PBI and set the filter to next location and repeat
Any advice would be appreciated!
How would you feel about just screen-shotting the PBI report and creating a PDF/PPTX file out of that?
You can also print direct to PDF:
Print -> Print to PDF as 'printer'
I hope I don’t break any rules for saying this but our software,PBRS, is just the answer for this. Our data-driven schedules can run the Power BI reports with one or more filters applied and export it to PDF, PowerPoint, Excel etc. The filter values can be pulled from a database list as you described.
Check it out at
https://go.christiansteven.com/power-bi-reports-scheduler-power-bi-reports-distribution-pbrs