powerquery

Install npgsql for PowerBI

自作多情 提交于 2019-12-24 17:24:39
问题 I'm not a programmer and I haven´t Visual Studio installed in my PC but I need npgsql to connect Microsoft PowerBI (Power Query) to a Postgres instance. Is there a way to install it without having to compile it? Is it necessary to do special configurations in my PC to make it work? Thank you very much. Javier 回答1: To expand on @Shay's comment, you can use nuget if you want the latest version of Npgsql. You don't need to install nuget.exe; you can down download the latest nuget package from

PowerQuery: How can I concatenate MULTIPLE grouped values

依然范特西╮ 提交于 2019-12-24 11:37:42
问题 Very similar to this, and I would comment to ask @marc-pincince but I don't have the reputation require. Would this be adaptable for 3 columns of data? I have column A, B, C. A = ID B = Award C = Year What I need is to have new column A which groups all the ID's and then new column B which shows Award Year, Award Year, Award Year, Award Year , etc.. I tried using The Custom Column using =[AllData][Award][Year] Also tried using =[AllData]([Award]+[Year]) Both of these result in errors. I was

How to apply CONTAINS clause on hierarchical categories to create scenario analysis in Power BI

你说的曾经没有我的故事 提交于 2019-12-24 10:56:30
问题 Building upon the solution given by @olly (Power BI: How to scenario analysis, where the selector "looks up" the select value from slicer and gets values from that row) & file: https://pwrbi.com/so_55281950-2/ In the sample file a "what if" or scenario analysis is created. Two slicers are used, one which selects the scenario, and another one which selects the objects to apply the scenario on. @Olly provided a clever solution to deal with the situation: Value + Trend = SUMX ( 'Demo Fact Table'

Display rows where foreign key is present in PowerBI

拈花ヽ惹草 提交于 2019-12-24 10:46:40
问题 I have two tables. The first table is called Capability: The second table is called Information Group: Some ID 's in the Capability table have been referenced in the Information Group table (i.e. in the Capability column ) At present, the query that powers the dashboard for the Capability view is: = Source{[Schema="dbo",Item="Capability"]}[Data] I want to show only rows in the Capability table where there is at least one reference in the Information Group table. In other words, since

Power Query Nested Table to String

二次信任 提交于 2019-12-24 08:58:35
问题 I have an xml that i'm processing and my output is the below image: The problem is that i get 2 columns and one has a nested table inside and the other one just the value. My output need to be something like this: Can anybody help? 回答1: Try adding a new custom column like this: = Table.AddColumn(PreviousStepNameHere, "FREQ Expanded", each if Value.Type([FREQ]) = Value.Type("text") then [FREQ] else Table.ToList([FREQ])) And then expand that new column using this code: = Table.TransformColumns(

Delete all queries in a workbook

穿精又带淫゛_ 提交于 2019-12-23 18:13:33
问题 I am trying to write a sub to delete all queries in a workbook. I have got the code below: Dim CN As Variant Dim qTable As QueryTable For Each CN In ThisWorkbook.Connections CN.Delete Next CN For Each qTable In Sheets("Property Extract 1").QueryTables qTable.Delete Next qTable' The connection deletion works fine but the queries remain. Any ideas how to delete all queries in a workbook? I was planning to replicate the query deletion for 2 or 3 sheets. thanks 回答1: First off, you cannot delete

Power Query column name as parameter

五迷三道 提交于 2019-12-23 12:31:16
问题 dear wizards) I'm trying to create a search function where I could use input: 1. Table for search 2. Column of this Table in which search will run 3. Value to search in the column specified in 2 the function looks like this: ( mTbl as table, mColName as text, mColValue as text) => let Source = mTbl, FilteredTable = Table.SelectRows(Source, each ([ mColName ] = mColValue )), Result = List.Count(FilteredTable[ mColName ]) in Result yet it results in Error: Expression.Error: The column 'mColName

How to update clients' Power BI files without ruining their reports?

一个人想着一个人 提交于 2019-12-23 06:06:18
问题 We have lots of clients each having a database(all have same structure) on their servers. I am trying to prepare a base Power BI file which has the ability to get data from the server and has business logic (calculated columns, measures etc.). But every client needs their own reports. I am trying to prepare Data and Relationships tabs and clients are preparing Report tab. But what if I want to update the business logic ? How can I update clients' files without ruining their already prepared

How can I expand all lists in a row of lists at the same time without repeating values?

你离开我真会死。 提交于 2019-12-23 05:32:29
问题 In response to this question regarding how to expand all lists in a row of lists at the same time, @Carl Walsh kindly provided this succinct and helpful code: let Source = #table({"A", "B"}, {{ {1,2}, {3,4}} }), Expanded = List.Accumulate( Table.ColumnNames(Source), Source, (state, column) => Table.ExpandListColumn(state, column)) in Expanded Which yields this: I would like to get this result instead: I don't want values repeated in previously processed columns as each follow-on column is

Cumulating row data over last 12 months in powerquery

ぃ、小莉子 提交于 2019-12-23 02:21:36
问题 I am creating a dashboard using Excel Powerquery(aka. M), in which I need to create a measure which requires rolling up values for last 12 months for two dimension Example: Input: D1 | D2 | MonthYear(D3) | Value A1 B1 Mar2016 1 A2 B1 Mar2016 2 A3 B1 Mar2016 3 A1 B1 Apr2016 4 A2 B1 Apr2016 5 A3 B1 Apr2016 6 A1 B1 May2016 7 A2 B1 May2016 8 A3 B1 May2016 9 Output: D1 | D2 | MonthYear(D3) | Value A1 B1 Mar2016 1 A2 B1 Mar2016 2 A3 B1 Mar2016 3 A1 B1 Apr2016 4+1 A2 B1 Apr2016 5+2 A3 B1 Apr2016 6+3