m

fill time gaps with power query

試著忘記壹切 提交于 2020-01-11 11:59:40
问题 I have following data start stop status +-----------+-----------+-----------+ | 09:01:10 | 09:01:40 | active | | 09:02:30 | 09:04:50 | active | | 09:10:01 | 09:11:50 | active | +-----------+-----------+-----------+ I want to fill in the gaps with "passive" start stop status +-----------+-----------+-----------+ | 09:01:10 | 09:01:40 | active | | 09:01:40 | 09:02:30 | passive | | 09:02:30 | 09:04:50 | active | | 09:04:50 | 09:10:01 | passive | | 09:10:01 | 09:11:50 | active | +-----------+----

Compare each column's contents with all other columns' contents and present matrix of match counts

纵然是瞬间 提交于 2020-01-07 03:58:26
问题 Given this table: I'd like to derive this table: ... sort of like a mileage chart in a map book. I'm trying to create a cross-table comparison of the words in each of the columns, against all of the other columns' words, to show how many matches there are between them. For instance, comparing Column 1 against Column2 might yield 4 matches. The yellow, bold outlined cells are the matches. And here's how I count them: I'm thinking there might be an 'easy' way to accomplish this using Power

Get date from weeknumber, dayofweek and year PowerQuery M

一笑奈何 提交于 2020-01-06 06:08:19
问题 I want to create an extra column to my dataset. This needs to be done by using M in PowerQuery. I have the weeknumber, dayoftheweek and year available. This can be done by using the following formula in Excel. I need something similar but then in M. Date = DATE([year],1,-2)-WEEKDAY(DATE([year],1,3))+[week]*7 + [day]-1 For example: Week 2, Day 3, Year 2019 should be: 9-1-2019 (In #dd-mm-yyyy#) Thanks in advance 回答1: This will do it = Table.AddColumn(Source, "Custom", each Date.From(Number.From

Having trouble with Text.BeforeDelimiter

家住魔仙堡 提交于 2020-01-05 04:04:17
问题 Any idea why this: = Table.AddColumn(#"Merged Columns", "Custom", each Text.BeforeDelimiter("ABCDEFG","E")) Is giving me this: ? My expectation is that this would populate each cell in the column "Custom" with "ABCD". I've checked and rechecked the spelling. What am I missing? 回答1: This function was recently added to Power BI Desktop (April 2017 update) and even more recently to Power Query in Excel. So probably you are using the function in an environment where it is not yet available. If I

Matchlists/tables in power query

混江龙づ霸主 提交于 2020-01-02 08:00:14
问题 I'm thinking this has to have a simple answer, but I can't find any examples. I have to compare every member of a list to a list of substrings to see if that member contains a substring, and if it does - return the substring to a third list at the same position as the member of the first list. Example: ListA = {"help me rhonda", "in my room", "good vibrations", "god only knows"} ListB = {"room", "me", "only"} ListC should then should = {"me", "room", null, "only"} I'm an advanced programmer

Overcome the export limit of 150k rows from Power BI

只谈情不闲聊 提交于 2020-01-01 19:43:15
问题 Is there a way to overcome Power BI export limit of max 150k rows? Limit docs: https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-export-data#limitations-and-considerations Voting for PBI improvement: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/18432742-increase-export-data-limits 回答1: Ok, I got through with that. It is possible. You should be familiar with R and SQL Server to do that. The example below exports 201k rows directly form PBI to SQL

Select row with MAX value per category Power BI

天涯浪子 提交于 2019-12-30 20:01:17
问题 How to select row with max value per category in M of Power BI. Suppose we have table: +----------+-------+------------+ | Category | Value | Date | +----------+-------+------------+ | apples | 1 | 2018-07-01 | | apples | 2 | 2018-07-02 | | apples | 3 | 2018-07-03 | | bananas | 7 | 2018-07-04 | | bananas | 8 | 2018-07-05 | | bananas | 9 | 2018-07-06 | +----------+-------+------------+ Desired results are: +----------+-------+------------+ | Category | Value | Date | +----------+-------+------

Nest Load a folder path Power Query

爷,独闯天下 提交于 2019-12-25 09:34:51
问题 I'm trying to use Excel Power Query (Stuck with Excel 2010 in this one) to check if a folder called "SWPPP", which is inside a list of directories, has files in it. The folder structure is as follows. |O:\Planning Projects |---2012\ |--------00-000 A Custom Folder Name\ |------------------------------------\SWPPP |---2013\ |--------00-000 A Custom Folder Name\ |------------------------------------\SWPPP |---2014\ |--------00-000 A Custom Folder Name\ |------------------------------------

Count Failures in PowerBI

佐手、 提交于 2019-12-25 04:28:48
问题 I am developing a dashboard in Power Bi and I am trying to come up with a way by which I can indicate or count the number of "fail"s in the following column: **Status** Column2 Column3 Column4 success data numbers email success data facts email fail data figures email success moredata science email success somuchdata magic email success stuff etc email success things etc email The first problem is that in some cases, all of the values in the column will be "success". So I can't just do a

Conditional calculation based on another column

天大地大妈咪最大 提交于 2019-12-24 23:30:11
问题 I have a cross reference table and another table with the list of "Items" I connect "PKG" to "Item" as "PKG" has distinct values. Example: **Cross table** **Item table** Bulk PKG Item Value A D A 2 A E B 1 B F C 4 C G D 5 E 8 F 3 G 1 After connecting the 2 above tables by PKG and ITEM i get the following result Item Value Bulk PKG A 2 B 1 C 4 D 5 A D E 8 A E F 3 B F G 1 C G As you can see nothing shows up for the first 3 values since it is connected by pkg and those are "Bulk" values. I am