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

Re: Just querying data for a specific Project

$
0
0

Thanks  - that seemed to work.

 

For the second part of my question, regarding querying specific fields (including Custom fields)...is there any way you can help 'decipher' what's being pulled back from the below? I have removed the custom_field elements in the below, but get a whole host of errors; what does "Expanded" do...likewise what does "Rename Columns" do?

 

let
    Source = FetchPages("", 500),
    #"Expanded Column1" = Table.ExpandRecordColumn(Source, "Column1", {"expand", "id", "self", "key", "fields"}, {"expand", "id", "self", "key", "fields"}),
    #"Expanded fields" = Table.ExpandRecordColumn(#"Expanded Column1", "fields", {"issuetype", "timespent", "project", "fixVersions", "customfield_10110", "customfield_10111", "aggregatetimespent", "resolution", "customfield_10112", "customfield_10113", "customfield_10114", "customfield_10104", "customfield_10105", "customfield_10106", "customfield_10107", "customfield_10108", "customfield_10109", "resolutiondate", "workratio", "lastViewed", "watches", "created", "priority", "customfield_10100", "customfield_10101", "customfield_10102", "customfield_10103", "labels", "timeestimate", "aggregatetimeoriginalestimate", "versions", "issuelinks", "assignee", "updated", "status", "components", "timeoriginalestimate", "description", "customfield_10006", "customfield_10009", "aggregatetimeestimate", "summary", "creator", "subtasks", "reporter", "customfield_10000", "aggregateprogress", "customfield_10001", "customfield_10004", "customfield_10115", "customfield_10116", "customfield_10117", "environment", "customfield_10118", "customfield_10119", "duedate", "progress", "votes", "parent", "customfield_10005", "customfield_10007", "customfield_10008", "customfield_10002", "customfield_10003"}, {"issuetype", "timespent", "project", "fixVersions", "customfield_10110", "customfield_10111", "aggregatetimespent", "resolution", "customfield_10112", "customfield_10113", "customfield_10114", "customfield_10104", "customfield_10105", "customfield_10106", "customfield_10107", "customfield_10108", "customfield_10109", "resolutiondate", "workratio", "lastViewed", "watches", "created", "priority", "customfield_10100", "customfield_10101", "customfield_10102", "customfield_10103", "labels", "timeestimate", "aggregatetimeoriginalestimate", "versions", "issuelinks", "assignee", "updated", "status", "components", "timeoriginalestimate", "description", "customfield_10006", "customfield_10009", "aggregatetimeestimate", "summary", "creator", "subtasks", "reporter", "customfield_10000", "aggregateprogress", "customfield_10001", "customfield_10004", "customfield_10115", "customfield_10116", "customfield_10117", "environment", "customfield_10118", "customfield_10119", "duedate", "progress", "votes", "parent", "customfield_10005", "customfield_10007", "customfield_10008", "customfield_10002", "customfield_10003"}),
    #"Expanded components" = Table.ExpandListColumn(#"Expanded fields", "components"),
    #"Expanded components1" = Table.ExpandRecordColumn(#"Expanded components", "components", {"name"}, {"components.name"}),
    #"Expanded fixVersions" = Table.ExpandListColumn(#"Expanded components1", "fixVersions"),
    #"Expanded fixVersions1" = Table.ExpandRecordColumn(#"Expanded fixVersions", "fixVersions", {"name"}, {"fixVersions.name"}),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded fixVersions1",{"expand"}),
    #"Filtered Rows" = Table.SelectRows(#"Removed Columns", each [id] <> null and [id] <> ""),
    #"Expanded issuetype" = Table.ExpandRecordColumn(#"Filtered Rows", "issuetype", {"name", "subtask"}, {"issuetype.name", "issuetype.subtask"}),
    #"Renamed Columns" = Table.RenameColumns(#"Expanded issuetype",{{"issuetype.name", "issuetype"}, {"issuetype.subtask", "isSubtask"}}),
    #"Expanded project" = Table.ExpandRecordColumn(#"Renamed Columns", "project", {"id", "key", "name"}, {"project.id", "project.key", "project.name"}),
    #"Expanded watches" = Table.ExpandRecordColumn(#"Expanded project", "watches", {"isWatching"}, {"isWatching"}),
    #"Expanded priority" = Table.ExpandRecordColumn(#"Expanded watches", "priority", {"name"}, {"name"}),
    #"Renamed Columns1" = Table.RenameColumns(#"Expanded priority",{{"name", "priority"}}),
    #"Removed Columns2" = Table.RemoveColumns(#"Renamed Columns1",{"customfield_10102"}),
    #"Expanded labels" = Table.ExpandListColumn(#"Removed Columns2", "labels"),
    #"Removed Columns3" = Table.RemoveColumns(#"Expanded labels",{"labels", "versions", "issuelinks"}),
    #"Expanded assignee" = Table.ExpandRecordColumn(#"Removed Columns3", "assignee", {"name", "emailAddress", "displayName", "active"}, {"assignee.name", "assignee.emailAddress", "assignee.displayName", "assignee.active"}),
    #"Renamed Columns2" = Table.RenameColumns(#"Expanded assignee",{{"assignee.displayName", "assignee"}, {"resolutiondate", "resolution date"}}),
    #"Expanded status" = Table.ExpandRecordColumn(#"Renamed Columns2", "status", {"name", "statusCategory"}, {"status.name", "status.statusCategory"}),
    #"Expanded status.statusCategory" = Table.ExpandRecordColumn(#"Expanded status", "status.statusCategory", {"colorName", "name"}, {"status.statusCategory.colorName", "status.statusCategory.name"}),
    #"Removed Columns4" = Table.RemoveColumns(#"Expanded status.statusCategory",{"subtasks"}),
    #"Expanded reporter" = Table.ExpandRecordColumn(#"Removed Columns4", "reporter", {"name", "emailAddress", "displayName", "active"}, {"reporter.name", "reporter.emailAddress", "reporter.displayName", "reporter.active"}),
    #"Expanded aggregateprogress" = Table.ExpandRecordColumn(#"Expanded reporter", "aggregateprogress", {"progress", "total"}, {"aggregateprogress.progress", "aggregateprogress.total"}),
    #"Expanded progress" = Table.ExpandRecordColumn(#"Expanded aggregateprogress", "progress", {"progress", "total"}, {"progress.progress", "progress.total"}),
    #"Expanded votes" = Table.ExpandRecordColumn(#"Expanded progress", "votes", {"votes"}, {"votes.votes"}),
    #"Expanded parent" = Table.ExpandRecordColumn(#"Expanded votes", "parent", {"id"}, {"parent.id"}),
    #"Changed Type" = Table.TransformColumnTypes(#"Expanded parent",{{"resolution date", type datetimezone}, {"created", type datetimezone}, {"updated", type datetimezone}}),
    #"Inserted Date" = Table.AddColumn(#"Changed Type", "Date", each DateTime.Date([resolution date]), type date),
    #"Renamed Columns3" = Table.RenameColumns(#"Inserted Date",{{"Date", "Resolution Day"}}),
    #"Inserted End of Week" = Table.AddColumn(#"Renamed Columns3", "EndOfWeek", each Date.EndOfWeek([Resolution Day]), type date),
    #"Renamed Columns4" = Table.RenameColumns(#"Inserted End of Week",{{"EndOfWeek", "Resolution Week"}}),
    #"Inserted Date1" = Table.AddColumn(#"Renamed Columns4", "Date", each DateTime.Date([created]), type date),
    #"Renamed Columns5" = Table.RenameColumns(#"Inserted Date1",{{"Date", "Created Day"}}),
    #"Inserted End of Week1" = Table.AddColumn(#"Renamed Columns5", "EndOfWeek", each Date.EndOfWeek([Created Day]), type date),
    #"Renamed Columns6" = Table.RenameColumns(#"Inserted End of Week1",{{"EndOfWeek", "Created Week"}})
in
    #"Renamed Columns6"

Report stopped updating since new gateway was installed.

$
0
0

We have a simple report that connects to an access database.  It has been working fine for over a year.  We use the on prem gateway to connect to this.  Last week I updated the gateway and since then I get the error seen in the screenshot.  When I load the report in PowerBI Desktop it refreshes without issue.  We have one date field in this database and every date is fine. There is no date field on the table: codes...

 

Any thoughts...

 

Capture.PNG

Re: Importing Queries into Power Bi from Teams

$
0
0

Hi Maggie,

 

Thanks for the reply.  I tried that previously and it didn't work in the way I wanted it to.  I can connect fine to an excel file in Teams but pulling in the queries built within is the difficulty.  That seems to be only possible using the 'import' command in the file menu and when using that, it can't fine the file.  After some additional digging, I was able to do it after mapping the Teams folder as  a network drive (http://randsnet.blogspot.com/2017/11/mapping-sharepoint-online-and-microsoft.html).  Not an ideal solution as I often have to repeat the steps but it works.

 

Justin   

Data Refresh with issues when columns change

$
0
0

Good Day all,

 

I am learning Power BI, my level is really basic and the course I took didn't have any information on my issue nor have been able to find an answer for this browsing in the web.

 

I've got a data base for actuals & forecast for specific products, I need to run some reports and scorecards concerning that data, see attainment on FCST, Deltas,etc. The issue is that this is not static DB, it is a 24 rolling months data base, so each month, I move one month, for example, if I run it today, it'll start on April 1st on 2018 and end up on april 1st 2020.

 

I created a master file for the actuals/forecast data to be kept with a relationship with another table to track my products, the structure is pretty simple, it was product column, product ID, product description, column that indicates if it is actuals or forecast, then the 24 months, and that worked really well, but as we just moved to a new month, it is throwing an error stating that column March 2018 is missing and doesn't allow me to refresh. 

 

Is there a way I can setup my data to refresh even if the data base columns have changed? if not, every single month I would be running into this same situation and it would not be lean at all. thoughts anyone?

 

 

Regards, 

 

Carlos Ch. 

Oracle: ORA-604: error occurred at recursive SQL level %s

$
0
0

I am attempting to setup a Gateway to Oracle 11gR2. I have installed the 64 bit client and 64bit ODAC on the server running the Gateway, but I get this error on powerbi.com : 

 

 

Underlying error code: -2147467259
Underlying error message: Oracle: ORA-604: error occurred at recursive SQL level %s
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.ValueError.DataSourceKind: Oracle

Microsoft.Data.Mashup.ValueError.ErrorCode: -2147467259
Microsoft.Data.Mashup.ValueError.Message: ORA-604: error occurred at recursive SQL level %s
Microsoft.Data.Mashup.ValueError.Reason: DataSource.Error

Re: Integration / connection to WikiTree online API

$
0
0

Hi Cherry, Thanks for replying. I was trying to adapt example you mentioned, but it seems that Twitter API is so far different from Wikitree, that i cannot adjust code.

It works well in browser but has issues in power bi.

Asking for help.

Adding a new column to a dataset withour having to update the PBIX file

$
0
0

We are a SAAS ISV that has integrated to PowerBI (Note: we are not using PowerBI embedded).  We provide our customers with standard datasets as well as a PBIX file that includes sample reports that they can use or clone and then modifiy.  When a customer contacts us to request an additional column be added in the dataset, it requires that we update the PBIX file and send it to them based on the way the data is pulled (see sample below).   When that new column is something that we think others may also be able to use, it means updating and sending out LOTS of PBIX files.   Does anyone in the community have suggestions for how we can add columns without having to generate updated PBIX files?  

 

let
    Source = Csv.Document(Web.Contents("https://ourwebserviceapiurl.com"),[Delimiter="^", Columns=21, Encoding=65001, QuoteStyle=QuoteStyle.None]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"ContactID", type text}, {"ContactType", type text}, {"FirstName", type text}, {"LastName", type text}, {"Email", type text}, {"Phone", type text}, {"AddressLine1", type text}, {"AddressLine2", type text}, {"City", type text}, {"StateOrProvince", type text}, {"PostalCode", type text}, {"Country", type text}, {"SourceName", type text}, {"BirthDate", type datetime}, {"Age", Int64.Type}, {"Gender", type text}, {"BookingCount", Int64.Type}, {"CompletedCount", Int64.Type}, {"TotalInvoiced", type number}, {"OwnerName", type text}, {"OwningBusinessUnitName", type text}})
in
    #"Changed Type"

Re: Can’t upload this report

$
0
0

Hi  

As tested, it works on my side.

Do you have a Power BI pro account?

If this problem still occurs, you could create a support ticket (free for pro users)

https://powerbi.microsoft.com/en-us/support/

4.png

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


Power BI cause temp on-premise SQL datbase growth rapidly

$
0
0

I have connected power bi with (query by view) sql server on-premise for weeks.

Now, I found out that my temp database log file growth rapidly approx. 30 GB in 2 weeks (system database with autogrowth by 1MB and simple recovery mode)

and this sql server have been used for 4 yrs without any growth rate. I try to shrink my almost no effect at all.

 

I also found that those query use a lot of reads and logical reads. Can I assume that whenever i execute report from power bi, there will be a cache data store in temp database.  Any solution to clear those cache?

 

Any suggestion or any advice where i can fix this or find out more information for you?

 

 

 

 

Unable to connect to Firebird DB with ODBC (DMTS_PublishDatasourceToClusterErrorCode)

$
0
0

Hey,

I have one machine where PBI Desktop is installed and is used for development.

This machine has an ODBC configured to connect to a different server that runs Firebird.

PBI Desktop is working well and I am able to connect to the DB.

When I am trying to connect with PBI Service and configure the gateway, I am failing to do so.

I have the gateway installed on the Firebird server as well as the development server.

Error:

Unable to connect: We encountered an error while trying to connect to . Details: "We could not register this data source for any gateway instances within this cluster. Please find more details below about specific errors for each gateway instance."Hide details

Activity ID:c7cd0466-c9cb-4aaf-9145-4476c261b706
Request ID:62eb7450-8b3a-9128-a98c-d18a3f2fb611
Cluster URI:https://wabi-australia-southeast-redirect.analysis.windows.net
Status code:400
Error Code:DMTS_PublishDatasourceToClusterErrorCode
Time:Tue Apr 02 2019 15:38:28 GMT+1100 (Australian Eastern Daylight Time)
Version:13.0.8960.148
CDS:Unable to connect to the data source undefined.
Underlying error code:-2147467259
Underlying error message:ODBC: ERROR [08004] [ODBC Firebird Driver]Unable to connect to data source: library '\\server2\c$\Program Files\Firebird\Firebird_2_5\Bin\fbclient.dll' failed to load
DM_ErrorDetailNameCode_UnderlyingHResult:-2147467259
Microsoft.Data.Mashup.ValueError.DataSourceKind:Odbc
Microsoft.Data.Mashup.ValueError.DataSourcePath:dsn=firebird_64
Microsoft.Data.Mashup.ValueError.Reason:DataSource.Error



2019-04-02 15_44_55-Window.png

 

Thanks a lot!

Re: Link PowerBI to Facebook Analytics (the business version).

$
0
0

Hi  ,

I have a little confused about your scenario.

What facebook data do you want to import to Power BI?

Normally, we could import the Facebook page data like this example.

Pease describe your scenario in more details so that we could help further on it.

Best  Regards,

Cherry

 

Re: Link PowerBI to Facebook Analytics (the business version).

$
0
0

Hi Cherry  ,

 

Thanks for your reply. 

I'll try to explain: 

I'm talking about the product of Facebook, called Facebook Analytics. This is similar to Google Analytics, and nothing like the normal Facebook pages described in the link. For reference: https://analytics.facebook.com/

 

This is what I'm looking to link in.

 

Hope this clarifies.

 

Kind regards,

Jeroen

Re: Report stopped updating since new gateway was installed.

$
0
0

Hi  

Which version is your gateway?

Do you install a on-premise gateway or a personal type?

gateway-type.png

After installing the new gateway, do you sign in with your power bi account and check if the data source is configured correctly under this new gateway? 

 

Reference:

migrate, restore, or take over the gateway

How to configure schedule refresh 

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Data Refresh with issues when columns change

$
0
0

Hi  ,

Where do you have the refresh error? Power BI Desktop or Power BI Service?

In addition, it seems that you will delete the column and the refresh the data source.

If it is, I'm afraid it will have refresh error. To update dataset, you have to re-load the data into Power BI desktop each month, rather than directly clicking the refresh button.

If it is convenient, could you share the screenshots of your error message and your dummy data structure so that I could understand your scenario better.

Best  Regards,

Cherry

 

 

Re: Microsoft SQL: The target principal name is incorrect. Cannot generate SSPI context.

$
0
0

Did you find resolution for this? If Yes, please let me know what steps you have taken to resolve. 

 

 

 


 wrote:

Hi,

 

I do have same issue but happening for only one user. Any idea to resolve this issue.

 

Granted permissions to SQL Server , Power BI gateway and Data Connections and able to see power BI gateway from https://app.powerbi.com/ and data connections looks good but not sure why below error message pops up when trying to connect it from Power BI Desktop. 

 

Unable to connect

We encountered an error while trying to ocnnect.

Details: Microsoft SQL: the target principal name is incorrect.

Cannot generate SSPI context."

 

I would like to let you know what and all steps i tried; Unistall and installed powerBI dataway but no luck.

Operating system - Windows 10 upto date. Even i am using windows 10 but able to connect Power BI dekstop successfully with my login but unable to login from his/her credentials. 

 

Power BI connection issue.jpg

 

Thanks,

Maru





Re: Oracle: ORA-604: error occurred at recursive SQL level %s

$
0
0

Hi  

Does this error happen when adding the Oracle data source under the on-premise gateway?

 

Once 64 bit client and 64bit ODAC are installed, please verify that the tnsnames.ora file is properly configured and you are using the proper net_service_name.

Also make sure that the net_service_name is the same between the machine using Power BI Desktop and the machine that is running the gateway.

https://docs.microsoft.com/en-us/power-bi/service-gateway-onprem-manage-oracle

 

Besides, there is a link how to troubleshoot "ORA-00604: error occurred at recursive SQL level 1"

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Adding a new column to a dataset withour having to update the PBIX file

$
0
0

Hi  

What kind of columns do your users need?

Could you show an example?

 

In Power BI Desktop, there are several methods to add columns

Create calculated columns in Power BI Desktop

Add columns in Edit queries

Add a custom column in Power BI Desktop

Add a column from an example in Power BI Desktop

 

When sharing with users, you could upload pbix file to service, then you could share via several ways:

Ways to share your work in Power BI

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Powerbi content pack for PPM issue

$
0
0

Hello,

I´m trying to connect the data from PPM to powerbi using the content pack for PPM but the data i get is in blank and this is the message that appears:

The expression referenced column 'ResourceDemandTimephasedDataSet'[TimeByDay (bins)] which does not hold any data because it needs to be recalculated or refreshed.
Please try again later or contact support. If you contact support, please provide these details.
Activity ID59547e92-818e-41da-9f4c-247a457e8825
Request ID7d44a85f-f9ac-a310-4348-74ccaf5d6c4c
Correlation ID58de47b1-06d2-f8d3-1ac7-7ddb5b10e9d5
TimeTue Apr 02 2019 12:16:04 GMT+0200 (Romance Daylight Time)
Version13.0.8960.148

Adding a new column to a dataset without having to update the PBIX file

$
0
0

We are a SAAS ISV that has integrated to PowerBI (Note: we are not using PowerBI embedded).  We provide our customers with standard datasets as well as a PBIX file that includes sample reports that they can use or clone and then modifiy.  When a customer contacts us to request an additional column be added in the dataset, it requires that we update the PBIX file and send it to them based on the way the data is pulled (see sample below).   When that new column is something that we think others may also be able to use, it means updating and sending out LOTS of PBIX files.   Does anyone in the community have suggestions for how we can add columns without having to generate updated PBIX files?  

 

let
    Source = Csv.Document(Web.Contents("https://ourwebserviceapiurl.com"),[Delimiter="^", Columns=21, Encoding=65001, QuoteStyle=QuoteStyle.None]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"ContactID", type text}, {"ContactType", type text}, {"FirstName", type text}, {"LastName", type text}, {"Email", type text}, {"Phone", type text}, {"AddressLine1", type text}, {"AddressLine2", type text}, {"City", type text}, {"StateOrProvince", type text}, {"PostalCode", type text}, {"Country", type text}, {"SourceName", type text}, {"BirthDate", type datetime}, {"Age", Int64.Type}, {"Gender", type text}, {"BookingCount", Int64.Type}, {"CompletedCount", Int64.Type}, {"TotalInvoiced", type number}, {"OwnerName", type text}, {"OwningBusinessUnitName", type text}})
in
    #"Changed Type"

Re: Adding a new column to a dataset withour having to update the PBIX file

$
0
0

Hi  

What kind of columns do your users need?

Could you show an example?

 

In Power BI Desktop, there are several methods to add columns

Create calculated columns in Power BI Desktop

Add columns in Edit queries

Add a custom column in Power BI Desktop

Add a column from an example in Power BI Desktop

 

When sharing with users, you could upload pbix file to service, then you could share via several ways:

Ways to share your work in Power BI

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Viewing all 123390 articles
Browse latest View live


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