FACEBOOK API - POWER BI - ERROR TO IMPORT AD_NAME AND ADSET_NAME - facebook-graph-api

I'm trying to import data of leads from FACEBOOK API to POWER BI. But, the "ad_name" and "adset_name" it's not appearing. I'm usign the bellow code:
act_548351656683396/insights?time_range={"since":"2022-01-01","until":"2022-09-30"}&level=ad&level=adset&level=campaign&fields=adset_name,campaign_name,ad_name,spend,objective,created_time,clicks,frequency,impressions,reach,actions&limit=5000 +access
I'd like to see too, the data per day. Someone can help me?

to help you with this it would require more details, are you using some tool to pull this data? does this tool support these field? might it be an issue with the limit ?

Related

Power BI :: Some credentials aren't validated as they are set to skip test connection

My problem is very easy: I'm retrieving all stocks about lithium on the ASX market from this web page.
I created a Power BI dashboard that you can visualize here.
As the source is Web I would like to refresh it every day using the Gateway connection, so I have successfully installed it on my computer that I turn on every day:
The problem is that instead of a successful daily refresh I have a daily error:
Failed to test the connection to your data source. Please retry your credentials.
Some credentials aren't validated as they are set to skip test connection.
If I enter in the Edit credentials I see the error:
Failed to update data source credentials: The credentials provided for the Web source are invalid. (Source at https://www.marketindex.com.au/commodities/lithium.)Show details
This because I'm using Authentication method: Anonymous and Privacy level setting for this data source: Public. But this is exactly what I'm using on Power BI desktop and it's working!
What am I doing wrong here?
Why the same connection is working fine on Power BI Desktop but not the same dashboard uploaded online?
EDIT: the On-premises data gateway looks installed without problems
It seems like the issues you're experiencing may be caused by the link you're using (https://www.marketindex.com.au/commodities/lithium), although I'm not sure exactly why.
For example, as has been mentioned in the Do I Need a Gateway for Web post, one can use Web.Contents instead of Web.BrowserContents in the raw M code in the Power Query Editor to avoid using a gateway. However, when I test this implementation using the link that you provide, I get an error when refreshing from Power BI online.
If I test this implementation using an HTML table from the https://tradingeconomics.com/commodity/lithium website, though, and set the data source credentials as follows, then I am able to successfully refresh the dataset from Power BI online.
I tested this with another HTML table from a random webpage and an online refresh worked as well. So it seems like there is something odd about how Power BI online interacts with the Market Index website and this is causing your issue. Potentially because of some authentication configuration on the Market Index side of things? I'm not able to help with looking further into why this is occurring, though.
Would you be able to use a different website with similar information as a data source for your report? If so, you could avoid the issues you're experiencing and avoid using a gateway in general if you wanted.
If you go this route, it seems like using the included "Scheduled refresh" setup in Power BI online works, but I will include the Power Automate scheduled refresh setup below in case this is desired instead.
Power Automate Scheduled Refresh
One can use Power Automate to "schedule" dataset refreshes instead of the included "Scheduled refresh" functionality in Power BI online. The steps are a little too long to include here, but the Refresh your Power BI dataset using Microsoft Flow article outlines the process on setting this up. There are various triggers that you can use to trigger your flow. The linked article uses one that triggers based on a SharePoint action, but there is a Recurrence trigger that can be used to trigger your flow at regular intervals/times.
Just set up your flow, make sure that it is "turned on", and your dataset will refresh at regular intervals from the cloud.

Automate power BI processes

I'm working on a Power BI project that:
1/Takes data from Google Sheets
2/Makes some modifications with power Query (or any other program)
3/Create the rapport
4/send it to the client
what i want to do is to automate these 4 steps.
the data's structure is the same, the content and the title of the columns are different from google sheets to other (depend on the client).
I'm new with BI and pretty inexperienced with Power BI so apologies if there is a simple answer to this question or if i didn't explain it as well as possible.
I need your help please.
Unfortunately power bi has no built in connections for google sheets.
give this article a try How to connect google sheet with power bi?
If that doesn't work you can try getting connector or API etc... you Can also explore using VBA (selenium) or some form of web automation to get it done.
some other workaround you can try is using smart sheet or Microsoft Excel

How to implement pagination in PowerBI to fetch all data/issues from Jira (not only the 50 maxResults)?

I am using PowerBI to create a dashboard of issues written in Jira. I am using an API to get the data from Jira, but they limited the # of results to 50. How can I paginate the data in PowerBI to get all issues, or let's say, 3000 issues.
I can get the 50 issues without any problem, but cannot retrieve the rest. Can you help me, please?

Querying against imported data in Power BI

I’m pretty new to Power BI and am still at the point of assessing whether it will meet our needs.
I’ve got as far as realising that when creating a new report I can either Import tables (I’m using SQL Server) and use a Direct Query.
The particular report I’m trying to report is quite resource intensive. To create the report in TSql requires iterating through hundreds of thousands of rows in multiple tables in a cursor and then storing some data in a temp table which is the output of the query. I’m very concerned about using the Direct Query option for this because of potential performance degradation on the server.
Is it possible in Power BI Desktop to Import the 5 tables that are used in my query, and then somehow write my query against these tables? That way (in-theory) the query wouldn’t be sent directly to our server each time someone views the report.
My question is based on my lack of knowledge of Power Bi so I may be asking something that is completely impossible!!
Thanks in advance for your help
Regards
Dotdev
That's exactly what Import option does. It imports the tables only once (unless you refresh or change your query). The viewer would be looking at the data that was extracted upon import and packaged into the PBIX file rather than a direct connection to the database.

Is there any way to create a table in existing dataset? Power BI REST API

I am not able to find any information on how to create a new table in existing data sets using REST api.
How to get list of tables for existing data set.
Any help would be appriciated
that's not a supported feature right now. Could you make submit this through our support site so we can track this request and keep you updated if we add this capability?
https://support.powerbi.com/forums/265200-power-bi
Appreciate your using Power BI,
-Lukasz
http://dev.powerbi.com
http://blogs.msdn.com/powerbidev
Make a feature request: https://support.powerbi.com/forums/265200-power-bi
Sign up for Power BI: http://www.powerbi.com
There is a feature request here:
https://support.powerbi.com/forums/268152-developer-apis/suggestions/7111791-alter-datasets-by-adding-removing-individual-table
It'd be great if the PowerBI team allowed to post tables to an existing dataset through the API.