powerquery

Inserting text manually in a custom column and should be visible on refresh of the report

China☆狼群 提交于 2019-11-26 23:40:34
问题 We have a table showing data like OpprId, revenue, area region where table is sorted based on highest revenue. This table was built using power query. Here user wants to add a new column and make it as status column and save the status. This status should be visible on refresh of the report connection. So is there any custom column formula to save the entered text, and this status should be in sink with OppId as in future new OppId's may be added so the sort order may change. OppId

How can I reference a cell's value in PowerQuery

萝らか妹 提交于 2019-11-26 18:50:53
I'm having multiple PowerQuery queries that I would like to feed the value of a cell in my Excel file. In this particular case, the full path to the sourcefile name. Is there any way I can get this into PowerQuery? Peter Albert This can be achieved using a named range and a custom function in PowerQuery: Name the cell you need to refer (type in a name into the file left of the formula bar) - e.g. SourceFile Insert a new blank PowerQuery query (PowerQuery ribbon -> From other sources) In the PowerQuery editor, go to View -> Advanced Editor and paste the following code; (rangeName) => Excel

PowerQuery: How can I concatenate grouped values?

天大地大妈咪最大 提交于 2019-11-26 09:29:32
问题 If I have the following table (shown in the image below), how can I write a grouped query that would concatenate the grouped results? For this example, I\'d want to group by the LetterColumn and concatenate the NumberColumn So the desired results would be: 回答1: If your table is Source, and if NumberColumn has the number type, then this will work: = Table.Group(Source, {"LetterColumn"}, {{"Column", each Text.Combine(List.Transform(_[NumberColumn], (x) => Number.ToText(x)), ","), type text}})

How can I reference a cell's value in PowerQuery

假装没事ソ 提交于 2019-11-26 05:30:00
问题 I\'m having multiple PowerQuery queries that I would like to feed the value of a cell in my Excel file. In this particular case, the full path to the sourcefile name. Is there any way I can get this into PowerQuery? 回答1: This can be achieved using a named range and a custom function in PowerQuery: Name the cell you need to refer (type in a name into the file left of the formula bar) - e.g. SourceFile Insert a new blank PowerQuery query (PowerQuery ribbon -> From other sources) In the

Convert matrix to 3-column table ('reverse pivot', 'unpivot', 'flatten', 'normalize')

放肆的年华 提交于 2019-11-25 21:41:39
问题 I need to convert the Excel matrix FIRST in the table LATER : FIRST : P1 P2 P3 P4 F1 X F2 X X F3 X X F4 X X LATER : F P VALUE F1 P1 X F1 P2 F1 P3 F1 P4 F2 P1 X F2 P2 X F2 P3 F2 P4 F3 P1 F3 P2 X F3 P3 F3 P4 X F4 P1 F4 P2 X F4 P3 X F4 P4 回答1: To “reverse pivot”, “unpivot” or “flatten”: For Excel 2003: Activate any cell in your summary table and choose Data - PivotTable and PivotChart Report: For later versions access the Wizard with Alt + D , P . For Excel for Mac 2011, it's ⌘ + Alt + P (See