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

Re: Azure Application Insights Continuous Export to Power BI

$
0
0

Hi,

I am experiencing the exact same problem after importing Azure Storage Blob data (that is continuously exported from Application Insights) into powerbi. I followed your recommendation by replacing my storage account details with the above query you listed in Advanced Editor this query didn't work.

When i tried to combine all blob files and  transform based on comm

 

let
    Source = AzureStorage.Blobs("XXX"),
    XXX1 = Source{[Name="XXXX"]}[Data],
    #"Removed Other Columns" = Table.SelectColumns(XXX1,{"Content"}),
    #"Invoke Custom Function1" = Table.AddColumn(#"Removed Other Columns", "Transform File from XXX (3)", each #"Transform File from XXX (3)"([Content])),
    #"Removed Other Columns1" = Table.SelectColumns(#"Invoke Custom Function1", {"Transform File from XXX (3)"}),
    #"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from XXX (3)", Table.ColumnNames(#"Transform File from XXX (3)"(#"Sample File (3)"))),
    #"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"Column1", type text}, {"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}, {"Column22", type text}, {"Column23", type text}, {"Column24", type text}, {"Column25", type text}, {"Column26", type text}, {"Column27", type text}, {"Column28", type text}, {"Column29", type text}, {"Column30", type text}, {"Column31", type text}, {"Column32", type text}, {"Column33", type text}, {"Column34", type text}, {"Column35", type text}, {"Column36", type text}, {"Column37", type text}, {"Column38", type text}, {"Column39", type text}, {"Column40", type text}, {"Column41", type text}, {"Column42", type text}, {"Column43", type text}, {"Column44", type text}, {"Column45", type text}, {"Column46", type text}, {"Column47", type text}, {"Column48", type text}, {"Column49", type text}, {"Column50", type text}, {"Column51", type text}, {"Column52", type text}, {"Column53", type text}, {"Column54", type text}, {"Column55", type text}, {"Column56", type text}, {"Column57", type text}, {"Column58", type text}, {"Column59", type text}, {"Column60", type text}, {"Column61", type text}, {"Column62", type text}, {"Column63", type text}, {"Column64", type text}, {"Column65", type text}, {"Column66", type text}, {"Column67", type text}, {"Column68", type text}, {"Column69", type text}})
in
    #"Changed Type"

 

Please help!


Re: Azure Application Insights Continuous Export to Power BI

$
0
0

Hi

I am experiencing the same problem as listed above when i try to import Application Insights data that is continuously exported to Azure Storage Account in blobs.

When i import blob data into PowerBI, and used your query that is referred below, invoke Custom Function step is failing.

 

Below is my query

 

let
    Source = AzureStorage.Blobs("XXX"),
   XXX1= Source{[Name="XXX"]}[Data],
    #"Invoke Custom Function1" = Table.AddColumn(Source, "JsonTransform", each Lines.FromBinary([Content],null,null,1252)),
    #"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
    #"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "JsonTransform"}),
    #"ExpandedJsonTransform" = Table.ExpandListColumn(#"Removed Other Columns1", "JsonTransform"),
    #"Parsed JSON" = Table.TransformColumns(#"ExpandedJsonTransform",{{"JsonTransform", Json.Document}}),
    #"Expanded Transform File from Query1" = Table.ExpandRecordColumn(#"Parsed JSON", "JsonTransform", {"event", "internal", "context"}, {"event", "internal", "context"}),
    #"Expanded event" = Table.ExpandListColumn(#"Expanded Transform File from Query1", "event"),
    #"Expanded event1" = Table.ExpandRecordColumn(#"Expanded event", "event", {"name", "count"}, {"event.name", "event.count"}),
    #"Expanded context" = Table.ExpandRecordColumn(#"Expanded event1", "context", {"application", "data", "device", "user", "session", "operation", "location", "custom"}, {"application", "data", "device", "user", "session", "operation", "location", "custom"}),
    #"Expanded custom" = Table.ExpandRecordColumn(#"Expanded context", "custom", {"dimensions"}, {"custom.dimensions"})
in
    #"Expanded custom"

 

Please help!

 

Best Regards,

sherin

Re: Cannot connect to AS400 via IBM DB2 database

$
0
0

Thank you!!  This worked for me as well.

 

Access SQL Server with on-premises data gateway (recommended)

$
0
0

Hello,

 

I have a .pbix file on Power BI Desktop, located on Workstation A. It accesses SQL Server data on Server B. I installed "on-premises data gateway (recommended)" on Server B to access data. Is this correct for publishing? I am suppose to install "on-premises data gateway (recommended) on Workstation A instead? And data access reaches through the .pbix file to schedule refresh my dataset? Has this changed recently from something else? I seem to recall having to install the "on-premises data gateway (recommeded)" on Server B instead.

 

Thanks,

Howard Hong

Re: Google Analytics Request failed (403) Error

$
0
0

Hey folks,

 

This appears to be because the developer of the data source/GA connector reaches their daily query limit, as it's their API credentials being used to connect to GA accounts.

 

The solution would need to be either:

 

a) The developers of the source (even if part of Microsoft) need to get their daily query limit increased

b) PowerBI Team allow us to connect up our own API accounts so everyone has their own daily limits, not shared limits

 

Ali

Re: Google Analytics Request failed (403) Error

$
0
0

Im in Victoria, Australia, same issue here to, waited whole weekend and on Tuesday am still getting the same error message, will be following this thread carefully hoping for a quick resolution. Or possibly set me refresh to 7pm est?

Re: Power BI audit log is CSV with embedded JSON. How can Power Query parse the JSON and create colu

$
0
0

Lydia,

Thank you soooo much for this! I was pulled off on a different project & I'm just getting back to this topic now.

 

How would I alter the query to reference the larger CSV file which I opened with Power BI desktop?

 

 

Thanks

Re: Access SQL Server with on-premises data gateway (recommended)

$
0
0

,

You can install on-premises gateway on both machines, just make sure that you are able to access SQL Server from the machine that installing the gateway.

After you add the SQL Server data source within gateway, you are able to set schedule refresh for your dataset.

Regards,
Lydia


Re: Xero data being allocated to incorrect months

$
0
0

,

Could you please post the screenshots about data in Xero and Power BI Service?

Regards,
Lydia

Modelling and querying multiple related fact tables

$
0
0

Good day!

 

Apologies if this is the wrong place to ask this sort of question.

 

I have a relational data source with 3 fact tables which are related to each other and model

patient doctor visits (EncounterEventFact table), assignment of a diagnosis to patient (DiagnosisEventFact table) and collecting lab results for the patient (LabComponentResultFact table) in the picture below. They all share EncounterKey a key, specifying a unique visit to a doctor. All EncounterKeys are in EncounterEventFact table and only once. I am using SSAS tabular in memory to model the data.

Each fact table has a few million rows (2-4 mil). DiagnosisDim has few tens of thousands of rows. PatientDim has few millions rows (<10 mil). LabDim has few hundred records. This is a simplified model with just 3 main dimensions.

My measures are a distinct count of EncounterKeys on DiagnosisEventFact and distinct count of EncounterKeys on LabComponentResultFact.

The sample report which is being developed is given a selection on diagnosis dim side, show counts of unique visits for this diagnosis and counts of lab collection visits for this diagnosis. 

diagnosis           count_visits_diagnosis                count_visits_labs

-----------------------------------------------------------------------------

ABC                         5                                          0

DEF                         10                                        5

 

etc

 

The problem comes when I select ALL diagnoses in the report. Counts for diagnoses measure loads instantly, while counts of labs measure takes forever. When I select a few diagnoses report works fast.

How to improve my SSAS tabular model or computation to handle this sort of reporting efficiently? 

Unfortunately I can not re-model data on the data source side.

 

Model.JPG

 

 

Re: Date issues with Sharepoint file sources

Re: powerbi connect to google bigquery shared dataset

$
0
0

,

What is the result when you use ODBC data source in Power BI Desktop and write the above query in the ODBC connector?

Regards,
Lydia

Re: Excel table add to data model and Power BI automatic refresh?

$
0
0

,

You can use on-premises gateway instead of personal gateway. It doesn't support to automatically refresh your dataset in your original scenario.

Regards,
Lydia

Re: Power BI audit log is CSV with embedded JSON. How can Power Query parse the JSON and create colu

$
0
0

,

Replace the Source Line in the above code with your own.

Regards,
Lydia

Re: On-premises gateway - data source refresh Invalid connection credentials

$
0
0

Thank you , I had the same problem and following your instructions fixed it Smiley Happy   I had to make sure the FQDN name of the certificate match when creating a new connection in PBI Desktop.


Re: Data from SQL->Warehouse>Star Schema>Online PBI Service to PBI Desktop / Report

$
0
0

 

Hi Lydia, 

 

Just going back to this, so the option I had was to download the the PBIX file from Service which I did and am workng on the report just by adding columns, measures and vistual which is ok. However, while the raw data is set to refresh daily on the Service, it does not refresh on the Desktop- is this corect or is there an option to refresh the data from Services to my Desktop report on server? 

 

Seems like I am going round and round in circles as I do not have credentials to connec to SQL servier for security reasons. 

 

Is there a better way to download data from SQL to server rather than to Services that you can suggest? 

 

Thank you

Alla 

Re: on-premises gateway authentication failed

$
0
0

Hi there,

 

I am having the same issue. But the internet zone security settings of IE are already set to "Internet" which to afaik is not HIGH security.

 

DCan you please elaborate what specific settings you have changed? Or did a generell change of the overall security zone do the trick?

 

Cheers

Re: Error opening PBIX file with online datsource

$
0
0

Many many thanks for that, I know the error was clear, but I did not realize how to overcome it.

Re: Date Display Formats

$
0
0

I am getting the same as XLBob. no option for dd/MM/yyyy only dd/MMM/yyyy and for some strange reason it still shows as American format on the sliders.

Problem after SAP BW connection

$
0
0

Dear All,

we have installed SAP RFC libraries and, after SAP BW connection, it appears a tree with the name of the server (root) and the node with the string $INFOCUBE.  Expanding this node appears the message "No items selected for preview". But, what kind of SAP BW authorizations we need to assign to login user in order to see the infocubes?

 

Thank you, kind regards

Andrea 

Viewing all 122627 articles
Browse latest View live