Quantcast
Channel: Power Query topics
Viewing all 31534 articles
Browse latest View live

Filters applicability to all boards when navigate though

$
0
0

Hello all, 

 

I wish you all a Happy new year Smiley Happy 

I'm here because I can't remember how to make sure that when I navigate between the different tables I have created, my filters automatically apply from table to table.
This is to avoid always selecting the same filter and to simplify the reading of my data for my users and myself.

 

E. G :

Table: Turnover,
Applicable filter: BU Designers,

I would like when I change boards:

Table: Sells
Applicable filter: automatically BU Designers.

Translated with www.DeepL.com/Translator

Thanks by advance,


Cannot connect to JSON file located on SharePoint

$
0
0

When attempting to connect Power BI to a JSON file on SharePoint, and used the Copy link URL of the JSON file.  Received the following:

 

Unable_to_connect.jpg

 

The JSON file points to Youtrack API https://www.jetbrains.com/youtrack

There are no issues when connecting to the JSON file when it is located on the desktop, nor when connecting to the Youtrack API directly.

 

I then used the following Power Query M script, which produces the web content in text form, but cannot convert back to JSON.

 

let
         Source = Text.FromBinary(Web.Contents("https:/sharepoint.com/:u:/s/site/file")),
         Custom1 = Text.Range(Source, 1, Text.Length(Source) - 2),
         Custom2 = Json.Document(Custom1)
in
         Custom2

 

The output displays all the web contents, but the Custom 2 displays the following:

 

custom2.jpg

 

Would anyone know why Power BI cannot connect to a JSON file on SharePoint:

 

1. Is this an issue getting an API token from SharePoint, and putting the credentials in the Query?

2. Is this an issue getting an API token from Youtrack, and putting the credentials in the Query?

3. Could it be that the JSON file URL path does not contain the file type at the end, in the Query i.e. .json ?

 

Regarding (1), credentials are asked for in the New Source connection.  With (2), I am already logged into Youtrack when connecting to the API and JSON file normally, but still do not get access when the file is on Share Point.  Perhaps there is a need for an API token to be placed in the the Query. I thought (3) might be the case also.

 

Others have found the same issue, but not in a situation with the JSON file on SharePoint:

 

https://community.powerbi.com/t5/Desktop/We-found-extra-characters-at-the-end-of-JSON-input/td-p/20607

 

Any thoughts would be appreciated.

Excel File Error

$
0
0

I'm getting an error in only a few cells when I "get data" from a specific excel file emailed by a client. The error shows up as div/0!. 

 

If I open the file save as then "get file" it is fine. Its only when I take the unedited file straight from the client that it causes issues. Its like it has a layer or something that only loads the formulas until its open. 

 

I need an automated system due to the number of files so opening and saving as then getting the files will not work. 

 

 

Cant connect to Partner Center Analytics

$
0
0

Hi
Im trying to connect to the new Direct Partner Center Analytics
But i get this error:
 
Aktivitets-id:
102d8e22-812e-4470-a9d5-982eb0fb5206
Anmodnings-id:
a17a8765-faac-2878-bee9-d3319a1c9a21
Statuskode:
400
Klokkeslæt:
Thu Jan 03 2019 14:11:37 GMT+0100 (Rom, normaltid)
Version:
13.0.7683.237
Klynge-URI:
https://wabi-north-europe-redirect.analysis.windows.net
 
 
We are a Direct partner
I am a Billing Administrator
And i also tried with our Global admin account.
(MFA is disabled from this loaction im trying from)
 
Any ideeas ?
 
/regards
Martin Lund Hansen

error connecting to exchange/ o365

$
0
0

Hello i am having a real issue trying to connect to outlook calendars in O365.

 

i am owner on all the outlook calendars and get the following message for some (not all) O365 accounts.

 

thanks!

 

DataSource.Error: ErrorItemNotFound: The specified object was not found in the store., The process failed to get the correct properties. Details: DataSourceKind=Exchange DataSourcePath=email@xyz.co.uk Details=

Invoked Custom Function to load folder full of JSON files based on function of loading 1 JSON

$
0
0

2 months ago I wrote the following script which works perfectly fine today as well, the sample code is from a table created after the error in the other Power BI instance.

 

let
    Source = Folder.Files("S:\17. AIMSIO\Raw Data BI\tickets_raw"),
    #"Filtered Hidden Files1" = Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true),
    #"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File from tickets_raw (8)", each #"Transform File from tickets_raw (8)"([Content])),
    #"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
    #"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File from tickets_raw (8)"}),
    #"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from tickets_raw (8)", Table.ColumnNames(#"Transform File from tickets_raw (8)"(#"Sample File (11)"))),
    #"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Name", type text}, {"Value", type any}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Source.Name", "FileName"}}),
    #"Removed Columns" = Table.RemoveColumns(#"Renamed Columns",{"Name", "Value"}),
    #"Removed Duplicates" = Table.Distinct(#"Removed Columns"),
    #"Invoked Custom Function" = Table.AddColumn(#"Removed Duplicates", "LoadFolder", each LoadFolder([FileName]))
in
    #"Invoked Custom Function"

 

I am trying to change up this process to keep ticket data in folders by Quarter instead of entire year. I have changed the folder destination and try to use the following script but I am getting an error and cannot figure out what is different.

 

Error:

Formula.Firewall: Query 'Q2_18' (step 'Invoked Custom Function') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination

 

Scipt is:

let
    Source = Folder.Files("S:\17. AIMSIO\Raw Data BI\Aimsio data\Q2_18"),
    #"Filtered Hidden Files1" = Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true),
    #"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File from Q2_18", each #"Transform File from Q2_18"([Content])),
    #"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
    #"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File from Q2_18"}),
    #"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from Q2_18", Table.ColumnNames(#"Transform File from Q2_18"(#"Sample File"))),
    #"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Name", type text}, {"Value", type any}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Source.Name", "FileName"}}),
    #"Removed Columns" = Table.RemoveColumns(#"Renamed Columns",{"Name", "Value"}),
    #"Removed Duplicates" = Table.Distinct(#"Removed Columns"),
    #"Invoked Custom Function" = Table.AddColumn(#"Removed Duplicates", "Q2Load", each Q2Load([FileName]))
in
    #"Invoked Custom Function"

 

The sample JSON is in the folder being queried for both examples. Any thoughts on what I am missing between the two?

Connection to SharePoint Folder

$
0
0

I have had my organisation creat a public group sharepoint site, for me to upload excel files on to in the following folder structure:

 

->Monthly Reports

       -> Capex

                 ->Excela1.xlsx

                 ->Excela2.xlsx

                 ->Excela3.xlsx

                 ->Excela4.xlsx

       -> Opex

                 ->Excelb1.xlsx

                 ->Excelb2.xlsx

                 ->Excelb3.xlsx

                 ->Excelb4.xlsx

 

I am trying to connect to the Monthly Reports top folder, so as to pull all the excel workbooks, however am getting the following error when attempting this:

____________________________________________

Unable to connect

 

We encountered an error while trying to connect.

 

Details: "Microsoft.Mashup.Engine1.Library.Resources.HttpResource: Request failed:
OData Version: 3 and 4, Error: The remote server returned an error: (500) Internal Server Error. (500 INTERNAL SERVER ERROR)
OData Version: 4, Error: The remote server returned an error: (500) Internal Server Error. (500 INTERNAL SERVER ERROR)
OData Version: 3, Error: The remote server returned an error: (500) Internal Server Error. (500 INTERNAL SERVER ERROR)"

____________________________________________

 

OR

 

____________________________________________

Unable to connect

 

We encountered an error while trying to connect.

 

Details: "Access to the resource is forbidden."

____________________________________________

 

I am the owner of this site, so not entierly sure where im going wrong with this?

 

Regards Rammi

Essbase (Beta) Connector - Applying Filters?

$
0
0

Hi all,

 

Still trying out this connector, and having some trouble with it.  I realize it's still in Beta, but hoping someone can help me with using 'Cube' syntax...

 

I have figured out how to add items and see a dimension and a measure, but now I would like to apply a filter to one of the dimensions when I pull.  I have tried filtering after the pull and everything blanks out, so assuming I have to do this when I retrieve the data.  But I don't know the proper syntax to make this happen.  Below is what I have so far:

 

let
Source = Essbase.Cubes("http://xxxxxxxxxxxx/aps/XMLA"),
#"essbasecluster-2" = Source{[Name="essbasecluster-2"]}[Data],
AUTORPT = #"essbasecluster-2"{[Name="AUTORPT"]}[Data],
AUTORPT.AUTORPT = AUTORPT{[Name="AUTORPT.AUTORPT"]}[Data],
#"Added Items" = Cube.Transform(AUTORPT.AUTORPT,
{
{Cube.AddAndExpandDimensionColumn, "[AE]", {"[AE].Levels(2)"}, {"Accounting Entity"}},
{Cube.AddAndExpandDimensionColumn, "[YR]", {"[YR].Levels(1)"}, {"Year"}},
{Cube.AddMeasureColumn, "EBITDA", "[EBITDA]"}
})
in
#"Added Items"

 

Where can I place the filter in the above syntax?  I want to filter on '2018' data in the YR dimension.

 

Thanks!!!

 

Chris


What is best - use SQL Server function to shape data, or entirely use GetData?

$
0
0

Greetings.

 

I have a situation where I currently use a SQL Server function to assemble the data for a report. The SQL Server code constructs a number of custom columns. These custom columns use CASE or IF statements to evaluate/compare values in other columns in the table; based on those conditions, the custom columns are assigned various values. There are also various filter conditions.

 

I can recreate these aspects using the data modeling features in PowerBI. However, it is definitely more time-consuming than simply using a SQL Server query, requires many steps in the query editor, & I think is more difficult for another developer to simply step in & understand.

 

What I am wondering is, in a situation like this, (let's say I was starting from scratch, with no prebuilt SQL Server function), is it better to simply construct a SQL Server query/function to use as a data source for PowerBI, or is it recommended instead to always use PowerBI's query editor, pull in the raw tables, & perform any data shaping & filtering there?

 

Thanks,
Randy

 

 

 

Is delayed data load possible (or is my concern for performance unwarranted)?

$
0
0

Greetings.

 

I have a report in which this is the desired action flow:

1. User selects a person from a dropdown list.

2. Based on this selection, a table displays training records associated with the selected person.

 

I have a working copy of this report in PowerBI, BUT I have a concern for performance. I am thinking that PowerBI pulls in ALL of the data (all training records, for all persons). Since no person is initially selected, there is no data displayed in the table, BUT I think it's all been pulled into memory. Then, when a person is selected, the appropriate data is displayed.

 

There is potentially a LOT of data that would get initially pulled in to this report (eventually for thousands of persons.). Never does there need to be more than one person's data in view. Is it possible to perform a delayed load, i.e., load NONE of the training data from SQL Azure until a person has been selected, THEN query SQL Azure for the appropriate training records? And, if a different person is selected, re-perform the SQL Azure query?

 

Or, is my concern for performance unwarranted, i.e., is a one-time load of a large amount of data, even if most of it's never accessed, preferable to repeated access of SQL Azure for small quantities of data?

 

Thanks,
Randy

 

 

Get Data from Web not getting all data

$
0
0

Hi all,

 

I'm currently pulling a published ServiceNow report into Power BI. The report contains 107 records, of which Power BI only pulls in 72. The report that's published contains all 107 records, and using the same feature on Excel also pulls in 72. Is there any reason why it pulls in less records? I've got no idea why it's doing it. I've also copied and pasted the data into an Excel table and shows the correct amount of records. Though it does appear to show new records from the report, it's just missing 35 for some reason.

 

Can anyone advise?


Thanks,


Tom

Trying to get Power BI to work with an Excel Data Source

$
0
0

Hi all,

 

I'm scratching my head over this because I feel like it shouldn't be that difficult.  But it has been.

I've got a report that works fine on my computer and connects to Azure and to databases as well as an excel file.  When I upload this to the service, I can't get it to refresh because my gateway is just working for the databases, and not for the excel file.  I've tried a number of things from uploading this file to the one drive that was created by the group in office 365, and trying to access it there.  But i've been unsuccesful there too.

 

Ideally the file would be in onedrive and accessible to the business users who are in that group.  But when I try to connect power bi desktop, i get the message"unable to connect.  We encountered an error while trying connect.  Details: Access to resource is forbidden"

I'm using Get Data > Web and then pasting in the URL that is given for the one drive link.

 

Does anyone have any idea how to do this?  I've tried looking through the forum and at videos youtube and haven't really come up with much.

Thanks!

Drew

 

HELP! The MSOLAP.8 provider is not registered on the local machin

$
0
0

I have a PowerQuery which I have successfully imported to PowerBI.  When I click to refresh data I get the error "An error happened while reading data from the provider: 'The MSOLAP.8 provider is not registered on the local machine."  

 

I went into Excel and checked the data connection string being used to connect to the SSAS cube the Power Query is connected to and it's MSOLAP.8

 

I also went into registry and it also shows MSOLAP.8

 

If anybody knows how to fix this is would be GREATLY appreciated!

 

Thanks, dave

Getting error when refreshing my excel data

$
0
0

Have update the Excel data by adding additional rows to the original file.

However, when apply query changes, the below error comes up

 

" OLE DB or ODBC error: [Expression.Error] We cannot convert the value null to type Logical.

 

But i am not able to identify which rows or column has issue.

 

thanks.

 

Possible bug when importing dates from xls in spanish locale (es-ES)

$
0
0

I'm trying to import several .xls files (can't modify the source files). Dates in Excel are perfectly fine (formated with mmm-aa in spanish locale), but when importing dates from March I get an error. Do you think this might be a bug or am I doing something wrong? I'm running the latest Power BI Desktop version.

let
    Source = Folder.Files("C:\DataSets\test"),
    #"Filtered Hidden Files1" = Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true),
    #"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File from test", each #"Transform File from test"([Content])),
    #"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
    #"Filtered Rows" = Table.SelectRows(#"Renamed Columns1", each Text.StartsWith([Source.Name], "HUBS")),
    #"Removed Other Columns1" = Table.SelectColumns(#"Filtered Rows", {"Source.Name", "Transform File from test"}),
    #"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from test", Table.ColumnNames(#"Transform File from test"(#"Sample File"))),
    #"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Column1", type any}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}, {"Column8", type text}, {"Column9", type text}, {"Column10", type text}, {"Column11", type text}, {"Column12", type text}, {"Column13", type text}, {"Column14", type text}, {"Column15", type text}, {"Column16", type text}, {"Column17", type text}, {"Column18", type text}, {"Column19", type text}, {"Column20", type text}, {"Column21", type text}}),
    #"Removed Top Rows" = Table.Skip(#"Changed Type",6),
    #"Promoted Headers" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]),
    #"Removed Top Rows1" = Table.Skip(#"Promoted Headers",2),
    #"Filtered Rows1" = Table.SelectRows(#"Removed Top Rows1", each [Hub] <> null and [Hub] <> "" and not Text.Contains([Hub], "Curva") and not Text.Contains([Hub], "Tipo") and not Text.Contains([Hub], "Fecha") and not Text.Contains([Hub], "Hub") and not Text.Contains([Hub], "Fuente") and not Text.Contains([Hub], "Uds")),
    #"Renamed Columns" = Table.RenameColumns(#"Filtered Rows1",{{"Hub", "Date"}}),
    #"Changed Type with Locale" = Table.TransformColumnTypes(#"Renamed Columns", {{"Date", type date}}, "es-ES")
in
    #"Changed Type with Locale"

 

 

screenshot1.PNGscreenshot2.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I couldn't attach files here, so here is a wetransfer link with .pbix and 2 excel sample files.

https://we.tl/t-P5KrtG4ToZ

Thank you! 


SharePoint List fails to load

$
0
0
Hey All,
[Duplicate post as did not get answers in the desktop furom] I am trying to load a list from SharePoint.
The issue is that I can see only 600 records out of 1006.
Looking at the query Editor I see 4 steps.
 
1. Source - Looks fine and loads all records.
2. Added Index - Looks fine and all records are still there.
2019-01-07 10_18_55-Untitled - Power BI Desktop.png
 
 
 
 

3. Kept Errors - Shows "This table is empty."message.
4. Reordered Columns  - Shows "This table is empty." message.
 
2019-01-07 11_16_18-Untitled - Power Query Editor.png
 

 

 
Creating a new visualization, shows only 600 Records from the original list.
2019-01-07 11_23_49-Untitled - Power BI Desktop.png

 

 
 
 
 
 
 
 
 
Additional info:
  • I worked with another list before and had no issues.
  • This is a workflow, maybe the issue lays there?
 
Any idea how to fix this?

Thanks a lot!

Reading JSON file directly from OneDrive Business

$
0
0

Hello,

 

I need a way to make Power BI read a JSON file that is stored in my One Drive Business.

I've tried creating a shared link and use the web data source with it to read, but I keep getting this message:

 

Imagem1.png

 

Am I missing something or it is not possible to do it?

 

(Another solution would involve using MSFlow to save that file in a local file server and make PowerBi read that file. However, I'll like a "cleaner" solution).

 

Best regards,

Connect SAP HANA to POWER BI Desktop

$
0
0

Dear Experts,

 

We have installed  On-premise Gateway in Remote desktop and would like to connect SAP HANA and Power BI Desktop and create Reports on HANA Views.

 

Please provide the step by step procedure and prerequisites to connect SAP HANA.

i have searched in our community and it tells me that the prerequisites are 

SAP HANA ODBC driver
SAP Netweaver RFC SDK.

 

Do we need to install SAP HANA ODBC driver,SAP Netweaver RFC SDK  in the Remote desktop where On-Premise gateway installed or it locally?

 

 

Best

Vadlamudi

importing excel - assuming cell content based on previous cell

$
0
0

I am new to Power BI ETL but not ETL. 

 

I was given an excel spreadsheet that has cells are filled out manually.

As you can see Column A is not filled out for every row and is related to the data by visual association or by being the previous known value in column A.

How does this data get loaded?

 

            Column A          Column B                   Column C

 

row 1   buildHouse

       2                               plumbing                    20%

       3                               framing                       50%

       4

       5  buildShed            

       6                               plumbing                    100%

       7                               framing                       30%

 

 

 

Custom connector Power Bi

$
0
0

 

Hello,

 

I need create a new cutom connector for Power Bi. In the code is necessary put conection to the database included user and paswword for to connect automatically.

 

In the next try i put the folow code:

 

 

section HelloWorld;

[DataSource.Kind="HelloWorld", Publish="HelloWorld.Publish"]
shared HelloWorld.Contents = (optional message as text) =>
//     let
//         _message = if (message <> null) then message else "(no message)",
//         a = "Hello from HelloWorld: " & _message
//     in
//         a;

        let
            HELLO = Oracle.Database("ORADES11", [HierarchicalNavigation=true, Query="ANY QUERY"])
        in
            HELLO;

// Data Source Kind description
HelloWorld = [
    TestConnection = (dataSourcePath) => {"HelloWorld.Contents"},
    Authentication = [
        UsernamePassword = [Username = "USERNAME", Password = "PASSWORD"]
    ],
    Label = Extension.LoadString("DataSourceLabel")
];

 

what I try to do is pass the database, a query already made and the credentials so that automatically in power bi desktop, login automatically .

 

I do not know if it is possible in a connector and if so I do not know how it could be done.

 

Thank you

Viewing all 31534 articles
Browse latest View live


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