Chris A.
IT Specialist @ U.S. VA OIG | Power Platform Development, Workflow Optimization
- Report this post
Last week some time Owen Price mentioned how he wished #powerquery M was treated more like a first-class language. Today I provide some supporting evidence.In VBA you can definitely make POST requests. It's actually not too bad at all. I wrote code to loop through all queries in Excel, send the code to PowerQuery formatter, and then replace the code with the response.In order to make that happen efficiently, I had to import a module to help with processing the JSON and I think I wrote about 3-4 subs and functions to make it all work.Below is the same result, with M code, using Power Query in Excel.There's so much you can do with it, often with just a few steps. Looking forward to enhancements to the coding experience, because this is one of the features of #Excel and #PowerBI that I really love.#lihm
31
19 Comments
Rick de Groot
I make Power Query easy for everyone ๐ฆ | Microsoftยฎ MVP | Power BI Consultant | Master Data Transformation ๐ powerquery.how
8mo
- Report this comment
Owen, Chris - I'm still looking for some use-cases for https://powerquery.how on how to use the numerations: WebMethod.PostWebMethod.DeleteWebMethod.GetWebMethod.HeadWebMethod.PatchWebMethod.PutI'm not even sure which functions support the enumerations to begin with. Is something that could work with the example above? And if not, any idea where they're being used?
2Reactions 3Reactions
Henrik Vestergaard
BI developer at Aarhus Universitet | Owner of henrikBLUEvestergaard
8mo
- Report this comment
Looks sharp. How do invoke the M function on all queries.
1Reaction 2Reactions
Hasnain Sabir
Data Analyst | Power BI & ERP Implementation | IFRS | Advanced Excel, Power BI Trainer | Accounts Finalisation As Per IFRS | System Designing and Development | VAT Consultant | Internal Control Sys
8mo
- Report this comment
Lets make one group where these value added post will be shared.
2Reactions 3Reactions
Hasnain Sabir
Data Analyst | Power BI & ERP Implementation | IFRS | Advanced Excel, Power BI Trainer | Accounts Finalisation As Per IFRS | System Designing and Development | VAT Consultant | Internal Control Sys
8mo
Its really very amazing. Its also motivate me to upskill myself in this area at advanced level
1Reaction 2Reactions
Owen Price
Data Analytics Professional | Microsoft MVP
8mo
- Report this comment
Beautiful!Are the line feeds required by the API?
1Reaction 2Reactions
To view or add a comment, sign in
More Relevant Posts
-
- Report this post
#PowerQuery is an excellent tool for getting and manipulating data. Excellent set of connectors and a powerful programming language with a useful menu driven front end to get you started. So you have captured data - where to next? Thing is, I get that #Excel has PowerPivot and a data model tool, but actually I want to use a database with SQL, and I want it to be an end user tool rather than a corporate data centre. And I want to use the data I have manipulated. Which to my mind means Access. Actually I could use VBA and the Jet database engine that lives within Excel, but I like the Access UI. Of course Access doesn't have PowerQuery, although I could use SQL. But in fact data ETL is often better done in a tool like PowerQuery, with its M language. And Acess does offer me good connectivity.So come on #Microsoft. Stop hobbling me. Make these things work better together. #Access remains a wonderful end user desktop database. Embrace it, and bundle it within #Excel!
20
11 Comments
Like CommentTo view or add a comment, sign in
-
Rick de Groot
I make Power Query easy for everyone ๐ฆ | Microsoftยฎ MVP | Power BI Consultant | Master Data Transformation ๐ powerquery.how
- Report this post
I researched the DateTime.ToText function in #powerquery , here's what I learned. ๐๐ฎ๐๐ถ๐ฐ๐By default, the DateTime.ToText function uses the culture of your system to transform a datetime value to text. That means the output can differ depending on where your query refreshes. ๐๐ผ๐ฟ๐บ๐ฎ๐You can output a specific format by providing a formatting string. These can be rather cryptic. The updated article on powerquery[dot]how now contains an overview with all relevant combinations. Some fun examples: Turning "12/31/2023 1:30:25 AM" into text can result in: t - "1:30 AM"T - "1:30:25 AM"r - "Sun, 31 Dec 2023 01:30:25 GMT"F - "Sunday, December 31, 2023 1:30:25 AM"You can find all other variations in the attached picture. ๐๐๐น๐๐๐ฟ๐ฒThe output formats can change depending on the specific local cultures. nl-NL: uses dd-mm-yyyyen-US: uses mm/dd/yyyynl-NL: no AM/PM notationen-US: uses AM/PMFor all other differences, find the article at #powerqueryhow .Happy tuesday!PS. If this was useful, consider reposting so others can follow along! โป๏ธ
213
23 Comments
Like CommentTo view or add a comment, sign in
-
Michael Berry
Data Platform Manager | Analytics Engineer | Microsoft Fabric | Azure | Databricks
- Report this post
Interesting investigation into the PowerQuery DateTime.ToText function
28
1 Comment
Like CommentTo view or add a comment, sign in
-
Chandeep Chhabra
Power BI Trainer and Consultant
- Report this post
Here are 9 little things (hacks) in #PowerBI. ๐ Tell me which one is your favorite. ๐Video link in the comments. Enjoy!#DAX #PowerQuery #visualization
121
5 Comments
Like CommentTo view or add a comment, sign in
-
Chris A.
IT Specialist @ U.S. VA OIG | Power Platform Development, Workflow Optimization
- Report this post
Learn how to reformat all of your #PowerPivot #DAX formulas by calling the SQLBI DAX Formatter with a little VBA.This is a follow up to a previous post where I called an API to reformat all of my #powerquery code in Excel.I know a lot of people are probably trying to figure out #Fabric and are asking, "Why?".Personally, for quick/ad hoc analysis that does not need a refresh, I am going to try and use Excel if I can. Also, I often have to provide code and documentation so that someone could reproduce it later on. I can code in #Python and have been learning a little #R, but often for these kinds of analysis I am working with someone that has neither installed and does not have experience coding in either one.At the very least, if I can stay in Excel, I know they have it installed, and I can more easily walk them through it. REMINDER:#VizForVets has our monthly meeting with Albert Bellamy set to present this Wednesday (June 21st) at 6pm ET. RVSP link in the comments. You don't want to miss it, he always speaks very candidly and boils things down for people so that you have the right x, y, z to make things happen. If you want to build your brand and reach, join us.
16
2 Comments
Like CommentTo view or add a comment, sign in
-
Rick de Groot
I make Power Query easy for everyone ๐ฆ | Microsoftยฎ MVP | Power BI Consultant | Master Data Transformation ๐ powerquery.how
- Report this post
Want to return multiple elements from a list based on their index positions? And wondering if #powerquery has a built-in function for this? ๐Sadly, the M language says โNoโ. ๐ซ๐ Real-World Scenarios:๐ถ Let's say you want to rename the 3rd and 5th columns in your query without having to specify the names manually.๐ถOr what if you have a function like List.PositionsOf that returns you the index numbers of the desired characters you want to retrieve.In both scenarios, a custom function is your knight in armour ๐ก. And I discovered that the List.Transform function can be a lifesaver in this regard.๐ I share with you 3 methods to get positions from a list. ๐ BONUS: Take my custom function for this task.๐ Discover these methods and the custom function here: https://lnkd.in/eCydvh37
108
6 Comments
Like CommentTo view or add a comment, sign in
-
Fassahat Ullah Qureshi
Senior Data Engineer | LinkedIn Top Data Engineering Voice | I help people land their first data analytics jobs | Data Mentor at Topmate | Highly Passionate about Data Analytics
- Report this post
Let me add some value to your lives by sharing a PDF Guide that shows some of the common features that ๐๐จ๐ฐ๐๐ซ ๐๐ ๐๐๐ ๐๐ง๐ ๐๐จ๐ฐ๐๐ซ ๐๐ฎ๐๐ซ๐ฒ Offer.In this guide, we take a simple '๐๐ข๐ญ๐ฆ๐ด๐๐ข๐ต๐ข' dataset as an example. ๐ช With ๐๐จ๐ฐ๐๐ซ ๐๐ฎ๐๐ซ๐ฒ, you can seamlessly filter, add new columns, or merge tables using a GUI. ๐ฎ ๐๐๐, on the other hand, is your go-to for sophisticated calculations and aggregations.๐ ๐๐ฎ๐ญ ๐ก๐๐ซ๐โ๐ฌ ๐ญ๐ก๐ ๐ซ๐๐๐ฅ ๐ช๐ฎ๐๐ฌ๐ญ๐ข๐จ๐ง: ๐๐ก๐ข๐๐ก ๐ญ๐จ๐จ๐ฅ ๐๐จ ๐ฒ๐จ๐ฎ ๐ซ๐๐๐๐ก ๐๐จ๐ซ ๐ฐ๐ก๐๐ง ๐๐๐๐๐ ๐ฐ๐ข๐ญ๐ก ๐ ๐๐จ๐ฆ๐ฉ๐ฅ๐๐ฑ ๐๐๐ญ๐ ๐๐ก๐๐ฅ๐ฅ๐๐ง๐ ๐?Kind Regards,Fassahat#powerbi #powerquery #dax #daxfunctions
5
2 Comments
Like CommentTo view or add a comment, sign in
-
Chandeep Chhabra
Power BI Trainer and Consultant
- Report this post
Here is an interesting #PowerQuery problem.I've got 2 tables.Table1 - Contains comma delimited letters. Each letter specifying a day of the week.Day Reference Table - Day of the week defined for each letter.Can you generate the expected Output? ๐คBrownies for making it dynamic. ๐
180
32 Comments
Like CommentTo view or add a comment, sign in
-
Rick de Groot
I make Power Query easy for everyone ๐ฆ | Microsoftยฎ MVP | Power BI Consultant | Master Data Transformation ๐ powerquery.how
- Report this post
QuoteStyle.None vs QuoteStyle.Csv. This #powerquery enumeration puzzled me all weekend. ๐ฅฒ Until I finally found out this.๐๐ก๐๐ง ๐ข๐ญ'๐ฌ ๐ฎ๐ฌ๐๐QuoteStyle is a relevant enumeration related to working with text. It's used for + splitting strings+ combining columns+ extracting data from files. ๐๐ก๐๐ญ ๐ข๐ญ ๐๐จ๐๐ฌIn most cases when changing these values around, the results are identical. So I puzzled around, clueless of when it made a difference. But then I found out this. In some strings you may have double quotes. For example: ๐ "This is a ""string, in quotes"""๐ "He came to me and asked: """Where are you going?"""."QuoteStyle then determines whether to ignore content between the double-quotes or whether to respect it. The screenshot shows exactly the impact that has. You won't often need it, but now you can at least find the examples at PowerQuery How: https://lnkd.in/ea3EqTinPS. How was your weekend?#bigorilla #powerqueryeverything #powerqueryhow
69
17 Comments
Like CommentTo view or add a comment, sign in
-
Umbreen Siddique
Data Engineer at TenX | Power BI | Snowflake | IBM Cognos | Talend | Data Stage | SSIS | SSAS | SSRS Developer
- Report this post
I have tested a simple Deneb custom visual on a Cherry Blossom Data Challenge and it turns out great.Deneb is a certified custom visual for #microsoftpowerbi, which allows developers to use the declarative JSON syntax of the Vega or Vega-Lite languages to create their own data visualizations.This is similar to the approaches used for creating R and Python visuals in Power BI, with the following additional benefits:โพ Libraries are packaged with the visual, so no additional dependencies on local libraries or gateways for your end-users when publishing reports.โพ Specifications are rendered inside the Power BI client, rather than being delegated to another location, typically resulting in faster render times for end-users.โพ Built for the web, meaning that it's possible to integrate with Power BI's interactivity features, with some additional setup.#deneb #datachallenge #powerbideveloper
1
Like CommentTo view or add a comment, sign in
1,746 followers
- 420 Posts
View Profile
Follow