m

Power BI (Power Query) Web request results in “CR must be followed by LF” Error

六月ゝ 毕业季﹏ 提交于 2019-12-10 06:10:18
问题 When you use the Web.Page(Web.Contents('url')) function to read a table from a web page, some sites will cause an error due to inconsistent linefeeds. DataSource.Error: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF There doesn't appear to be any option you can pass to the Web functions to ignore those errors. This method works for a short while, but doesn't survive a save/refresh: let BufferedBinary = Binary.Buffer(Web.Contents("http://vote

What advantages does using Oslo and M have and when would you use it?

风流意气都作罢 提交于 2019-12-09 18:01:19
问题 After attending a talk on Oslo/M I am struggling a bit to see the advantages of using it over existing methods and in what situation it would be useful. I know its quite new and not all details have been released etc but can some one give me some advantages and when you might use it? Thanks, Alex 回答1: This questions seems to have the answer you're looking for: What is model driven development good for? Erik Wynne has a nice blog-post on this topic: Oslo == 42 He also links to a post on MSDN,

Load *.htm file saved as .xls (starting from row number 5) Using Power Query

瘦欲@ 提交于 2019-12-08 06:13:21
问题 I have to import an .xls file which is saved as .*htm, .*html. I attached a link which provides a sample file of that format. The Actual first row of the table starts from row number 5. But there are data above it. The file looks as below, The sample file. But please make sure to include some rows on top of it with some test values and make it look like the screenshot above. if there are no rows above it, then the following M Code provided by Alexis Olson works let Source = Folder.Files("C:

Load *.htm file saved as .xls (starting from row number 5) Using Power Query

别等时光非礼了梦想. 提交于 2019-12-06 18:17:25
I have to import an .xls file which is saved as .*htm, .*html. I attached a link which provides a sample file of that format. The Actual first row of the table starts from row number 5. But there are data above it. The file looks as below, The sample file . But please make sure to include some rows on top of it with some test values and make it look like the screenshot above. if there are no rows above it, then the following M Code provided by Alexis Olson works let Source = Folder.Files("C:\Users\aolson\Downloads\example-html.xls"), #"Filtered Rows" = Table.SelectRows(Source, each ([Extension

What is the M language for? [closed]

心不动则不痛 提交于 2019-12-05 12:28:17
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I heard Microsoft developed a programming language called M . Can someone explain the use of M and how a C# programmer can benifit from M . 回答1: UPDATE 2: In July 2015, Microsoft released a heavily revised version of M called Power Query. It is described as a "formula language",

Overcome the export limit of 150k rows from Power BI

前提是你 提交于 2019-12-04 18:24:58
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 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 Server. Install RODBC package in R. For those who want to do that from scratch, please check the reference

What advantages does using Oslo and M have and when would you use it?

风流意气都作罢 提交于 2019-12-04 07:36:33
After attending a talk on Oslo/M I am struggling a bit to see the advantages of using it over existing methods and in what situation it would be useful. I know its quite new and not all details have been released etc but can some one give me some advantages and when you might use it? Thanks, Alex Mindaugas Mozūras This questions seems to have the answer you're looking for: What is model driven development good for? Erik Wynne has a nice blog-post on this topic: Oslo == 42 He also links to a post on MSDN, that contains some interesting thoughts: Why do we need Oslo? I haven't played with the

What is the M language for? [closed]

情到浓时终转凉″ 提交于 2019-12-03 22:24:22
I heard Microsoft developed a programming language called M . Can someone explain the use of M and how a C# programmer can benifit from M . UPDATE 2: In July 2015, Microsoft released a heavily revised version of M called Power Query . It is described as a "formula language", and is no longer about modeling per se. UPDATE 1: It's been almost four years since I wrote this, and my guess (that "it's not very useful") turns out to have been shared by a lot of folks. M is long since defunct and was never released. MS switched efforts to OData instead. To understand the point behind M, you have to

How do I comment in Power Query M?

一世执手 提交于 2019-12-03 22:03:30
Is there a way to comment M code / comment out lines or blocks of code? Alejandro Lopez-Lago - MSFT M supports two different types of comments: Single line comments can be started with // You can comment out multiple lines or comment out text in the middle of a line using /* */ (e.g. = 1 + /* some comment */ 2 ) Comments might seem to disappear in the formula bar if they are at the end of the line, but they are still there. You can verify this by looking at your code in the Advanced Editor. 来源: https://stackoverflow.com/questions/31569679/how-do-i-comment-in-power-query-m

ASP.NET session variables

你。 提交于 2019-12-03 21:52:05
I have a session variable: ID. Is there ever a possibility that two browsers on the same PC could share the same session variable and update it, therefore producing random results. I would expect there to always be two separate sessions with two separate sets of session variables. I have researched this and I have come accross the following web page, which suggests that there are session locks to prevent this from happening:http://odetocode.com/blogs/scott/archive/2006/05/20/session-state-uses-a-reader-writer-lock.aspx. I have an ASP.NET application and there are random results suggesting that