Quantcast
Channel: All Power Query posts
Viewing all 123502 articles
Browse latest View live

How to make a variable in connection string?

$
0
0

Hi all,

 

I've been using PowerBI for some time now and are familiar with building reports based on SQL data - for historic purpose.

 

Now, I have some restaurants and would like to get data for the past 7 days automatically each 15 minutes. The data source is a web service and the connection string looks like this:

 

https://login.onlinepos.dk/api/external/?agreementnumber=8855&username=XXX&password=YYY&function=Sales_Export&from=1470009601&to=1472515199

 

The remote system is using epoch time, thus this syntax: from=1470009601&to=1472515199

 

Somehow I need PowerBI to replace "from" with now and 7 days back and "to" with now (as in this moment)

 

Is that somehow possible?

 

If it's not possible because PowerBI doesn't allow scheduled Get Data how do I put up the possibility to manually choose a date and have it converted into a variable in the connection string?

 

Any help is appreciated, thanks.

 

Kind regards,

Morten Schaumann


Re: Changing from Personal to Data Gateway failing

$
0
0

The smily face only gives an option to give a rating for PowerBI all up, so this doesn't seem to be an option.

 

Hoping for a solution.

Thanks!

Re: Changing from Personal to Data Gateway failing

$
0
0

 In my experience what you should do is get rid of any instances of gateway. Delete registry keys and folder and files from previous installation and then install data gateway.

Re: How to make a variable in connection string?

$
0
0

Unless I am mistaken, you want to create Parameters in the Query Editor.

Re: Error connecting to SharePoint online

Re: direct query limitations

$
0
0

Hi 

How is your experience with Direct Query in case you have mentioned : where custommers want minute details ?

Can we schedule refresh for minute by minute ?

 

BR,

Achin

Re: How to make a variable in connection string?

$
0
0

Maybe you can tell me - I have absolutely no idea of what is the right way to do it.

 

So, if you have any good suggestion of a syntax you would be hero of the day if sharing it with me :-)

Re: Unable to schedule refresh with sharepoint and database

$
0
0

Hi ,

 

According to your description, it seems that you are connecting to SharePoint Online Excel and on-premise database in the same report, right?

 

Based on my test, as SharePoint Online doesn't require gateway while on-premise database requires, and those two data sources requires different kind of credentials, you need to install personal gateway to connect to on-premise database and enter credential for SharePoint Online use oAuth2 authentication. See:

 

q1.PNG

 

 

Reference:

Power BI Gateway - Personal

 

Best Regards,
Qiuyun Yu


Re: Unable to schedule refresh with sharepoint and database

$
0
0

Thanks , I tried installing personal gateway and had no problems with setting up scheduled refresh.

 

But I would like to utilize the on-premises gateway i have been using for everything else until now for this task as well - is it even possible?

Re: Get key instead of text from SAP BW Cube

$
0
0

This means that we can not combine SAP BW data with data from other sources. Relations between tables are always made with ID fields. This is really a big problem for us.

Re: How to make a variable in connection string?

$
0
0

Sure, in this example, I have a parameter called "File". I have two options set for this parameter, "datasource1.csv" and "datasource2.csv". The "M" code looks like this:

 

let
    Source = Csv.Document(File.Contents("c:\temp\powerbi\"& File),[Delimiter=",", Columns=2, Encoding=1252, QuoteStyle=QuoteStyle.None]),
    #"Promoted Headers" = Table.PromoteHeaders(Source),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Category", type text}, {"Value", Int64.Type}})
in
    #"Changed Type"

You can learn more about parameters here:

 

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

 

Re: Get key instead of text from SAP BW Cube

$
0
0

Also stuck with this problem. Anyone know of a work around ?

Re: Get key instead of text from SAP BW Cube

$
0
0

Power BI developers, we need the SAP BW Key to be available please.  Is it possible to include the fix in the next Upgrade?

We can't use SAP BW at all at this point, because we need the Key to be available.

Re: Schedule refresh for OData Feed - supported or not?

$
0
0

Hi  

It is happening now with me. We have a report working on OData and Web.Contents as source.

We have made channges in report and its throwing same error.

Previously it was working fine.

 

We are using CRM Online as source.

Any pointers from your end.

Thank You!

Achin

 

accesing "Site Report" data in SharePoint Online

$
0
0

In SharePoint Online, when an administrator goes to "Site Contents", there are a couple of reports available showing number of visits and trending content.:

 

SPO Site report.PNG

 

 

 

 

 

 

 

 

Can PowerBI connect to the raw data used to populate these reports?  I can't find it either as a SPO List or an SPO Folder.

 

Thanks,

David


Export from Excel 2016 missing upload and export options, only dataset created

$
0
0

In Excel 2016, there is a 'Publish to Power BI' option.  It says you need to first save it to OneDrive for Business, and then you will be given the option to 'upload' or 'export'.

 

Well, I've saved it to OneDrive for Business, and now the publish option only shows a 'publish' button, not a choice of 'upload' or 'export' like the instructions say.

 

And when it's done, I only get a dataset inside Power BI, nothing that looks like the PowerPivot I built.

 

What am I doing wrong, please?

 

InstructionsInstructionsRealityReality

 

https://powerbi.microsoft.com/en-us/documentation/powerbi-service-publish-from-excel/?ui=en-US&rs=en-GB&ad=GB

Re: Unable to schedule refresh with sharepoint and database

$
0
0

I have this same issue.

 

I have a dataset with some data source files in SharePoint Online, and some on-premise data sources.

 

I have an "On-Premises Data Gateway" that works great with my on-premise data sources.

 

But in the Power BI service, I can't set up scheduled refresh of my dataset.

 

So do I have to also use a "Personal Gateway" for cases like these? Isn't there some way I can use the new "On-Premises Gateway" I already have set up?

Re: Unable to schedule refresh with sharepoint and database

$
0
0

, yes, same issue, thanks for wording it a bit better.

 

I have set up a Personal Gateway for now, still hoping to make the "On-Premises Gateway" work though.

Re: Deleting or archiving mechanism for real time data come from Azure Stream Analytics

$
0
0

Was searching for the same thing - and found it - so for completeness for others -

 

Stream Analytics uses the default PowerBI data retention policy, which is 200,000 rows.  After that, data is flushed out using FIFO.

If you want to remove data on your own, you can use the Power BI REST APIs to clear the rows of a table: http://docs.powerbi.apiary.io/#reference/datasets/table-rows/clear-the-rows-in-a-table

 

REFERENCE: https://social.msdn.microsoft.com/Forums/en-US/162605e8-68b2-4837-b2c5-56506c927600/power-bi-data-retention?forum=AzureStreamAnalytics 

3 Crucial Tips for optimizing Google Analytics with Microsoft Power BI

$
0
0

Community,

 

PowerBI’s integration with GA is longstanding, pretty solid, and largely dependable. However, there are still potential issues with slow user experience [UX] and data accuracy arising from the nature of the data (high cardinality, long text fields, GA sampling limits). I wrote this blog showcasing 3 tips on restoring performance and dramatically increasing accuracy via some easy steps. It is worthy to note that although this article is geared toward the free version of GA, it can be applied to the Premium [360] version and other data sources as well.

 

Sorry for the link-out - but I hope this helps. Let me know if you have any questions or comments. 

 

David

Viewing all 123502 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>